You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.
Build object cannot be modified after is has been created.
Actual Behavior
Build object can be modified if build is not finished (build container is still building the image). If build is finished, updates to the object are declined with the following message
# * spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
Modifications of the build object should be declined at any stage, e.g. with the help of a webhook.
Steps to Reproduce the Problem
1. kubectl apply -f build.yaml
2. Change e.g destination image name as long as the build is not completed yet:
use command kubectl edit pod example-build-pod-0feed
Check that the build did not pick up the destination change: kubectl logs example-build-pod-fa606a build-step-build-and-push|grep index.docker.io/nachtmaar/ shows destination is still index.docker.io/nachtmaar/http-db-service:v1 but should be v2
Expected Behavior
Build object cannot be modified after is has been created.
Actual Behavior
Build object can be modified if build is not finished (build container is still building the image). If build is finished, updates to the object are declined with the following message
Modifications of the build object should be declined at any stage, e.g. with the help of a webhook.
Steps to Reproduce the Problem
1.
kubectl apply -f build.yaml
2. Change e.g destination image name as long as the build is not completed yet:
--destination=index.docker.io/nachtmaar/http-db-service:v1
=>--destination=index.docker.io/nachtmaar/http-db-service:v2
kubectl edit pod example-build-pod-0feed
kubectl logs example-build-pod-fa606a build-step-build-and-push|grep index.docker.io/nachtmaar/
shows destination is stillindex.docker.io/nachtmaar/http-db-service:v1
but should bev2
Additional Info
build.yaml:
Tested with knative build 0.6.1 and 0.7
The text was updated successfully, but these errors were encountered: