New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default imagePullPolicy for initContainers. #38574
Conversation
I'm going to append test result later. |
Test Cases: Before:
After:
|
Jenkins CRI GCE e2e failed for commit 11e5da5. Full PR test history. The magic incantation to run this job again is |
@k8s-bot cri e2e test this |
@k8s-bot cri e2e test this |
Anyone know of a reason this hasn't been merged ? |
Not sure if Jenkins CRI GCE e2e is broken upstream, I don't think the failure is as a result of this change though. |
@k8s-bot cri e2e test this |
1 similar comment
@k8s-bot cri e2e test this |
This PR is not for the master branch but does not have the |
@@ -493,6 +493,12 @@ func Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec, out | |||
// taking responsibility to ensure mutation of in is not exposed | |||
// back to the caller. | |||
in.Spec.InitContainers = values | |||
|
|||
// Call defaulters explicitly until annotations are removed | |||
for i := range in.Spec.InitContainers { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't get called by the kubelet - are the defaults being correctly applied there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind - kubelet is non-defaulting now.
This won't work in all possible code paths in the api server, but is probably sufficient for now.
Please add a test case that demonstrates this. |
Sure, I'll add a test case for that :). Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. pkg/api/v1/conversion.go, line 498 at r1 (raw file): Previously, smarterclayton (Clayton Coleman) wrote…
After defaulting in apiserver, the kubelet will get it in serialize/de-serialize. Comments from Reviewable |
@k8s-bot verify test this |
Jenkins verification failed for commit 98bb7b5d48b74781270ad20315e9566e0c74190f. Full PR test history. The magic incantation to run this job again is |
Added a test case for this issue. /cc @smarterclayton |
@smarterclayton , PTAL :). |
/lgtm |
Removing label |
Jenkins Bazel Build failed for commit cd6792a. Full PR test history. The magic incantation to run this job again is |
Jenkins GCE etcd3 e2e failed for commit cd6792a. Full PR test history. The magic incantation to run this job again is |
@k8s-bot gce etcd3 e2e test this |
@k8s-bot bazel test this |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
fixes #38542