-
Notifications
You must be signed in to change notification settings - Fork 1.6k
✨ (go/v4;helm/alpha-v1;kustomize/v2): Adding default image policy for the manager #4932
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
✨ (go/v4;helm/alpha-v1;kustomize/v2): Adding default image policy for the manager #4932
Conversation
Welcome @adarshagrawal38! |
Hi @adarshagrawal38. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
...lugins/optional/helm/v1alpha/scaffolds/internal/templates/chart-templates/manager/manager.go
Show resolved
Hide resolved
Hi @camilamacedo86, do we still need this PR? |
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.
Hi @camilamacedo86, do we still need this PR?
I see another PR is raised to do same.
We have another PR: #4952 proposal, but it seems to be doing more than should be done by @ronaldosaheki. Therefore, I am unsure if @ronaldosaheki will modify their PR.
Let's speak in the Slack channel kubebuilder.
pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/manager/config.go
Outdated
Show resolved
Hide resolved
Hi @camilamacedo86 do have any new comments on the PR? |
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.
That is great 🎉 to move forward here, we need to squash the commits
We should have 1 PR / 1 solution or fix / 1 commit
Could you please do that?
Also, because the PR title and emojis are used in our release notes
I will update this one accordingly, I hope that you do not mind
/ok-to-test
Could you also please rebase it with the master branch? |
f5d70fd
to
b41f7b9
Compare
Yeah sure did it. |
yeah sure @camilamacedo86 I have updated the PR accordingly, Thanks for help! |
@@ -31,6 +31,9 @@ type Config struct { | |||
|
|||
// Image is controller manager image name | |||
Image string | |||
|
|||
// ImagePullPolicy defines the policy to pull the container images | |||
ImagePullPolicy string |
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.
We do not need it right?
We just need update the manager to have the Image Policy by default
How would we pass this value?
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.
Updated the code to set default values.
{{- if .ImagePullPolicy }} | ||
imagePullPolicy: {{ .ImagePullPolicy }} | ||
{{- end }} |
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.
{{- if .ImagePullPolicy }} | |
imagePullPolicy: {{ .ImagePullPolicy }} | |
{{- end }} | |
imagePullPolicy: "IfNotPresent" |
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.
done
@@ -31,6 +31,9 @@ type Config struct { | |||
|
|||
// Image is controller manager image name | |||
Image string | |||
|
|||
// ImagePullPolicy defines the policy to pull the container images | |||
ImagePullPolicy string |
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.
ImagePullPolicy string |
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.
Done
b41f7b9
to
cfa7b7d
Compare
Signed-off-by: Adarsh Agrawal <[email protected]>
cfa7b7d
to
3e2e7b9
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adarshagrawal38, camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adding image pull policy tag to the helm template
Fixing issue: #4859