-
Notifications
You must be signed in to change notification settings - Fork 33
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
feat(deployment/daemonset): Remove imagePullPolicy from charts #72
Conversation
Hi @Mart-Kuc, according to k8s documentation, the overwriting happens only when the ImagePullPolicy is not specified. So setting The documentation also suggests setting the Please correct me if I misunderstand anything. |
Hi @jiaqiluo, you're absolutely right. However, my point is related to cases where pulling images every time may not be desirable. For example, if Take an air-gapped solution like Rancher or a fully isolated Kubernetes cluster, for instance. In such environments, we don't have a connection to the public network, so pulling images on every pod restart is not feasible. If the By removing the |
Hi @Mart-Kuc, yeah, it makes sense. Just for clarification, the tag Instead of removing the I noticed the |
4524768
to
35439c4
Compare
35439c4
to
9704d04
Compare
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.
The changes look good to me!
There is one last charge we need to add: bumping the appVersion
and version
in the Chart.yaml
file as we are making changes to the chart. Could you bump those two fields to 3.3.1-rancher3
?
9704d04
to
a295de0
Compare
Bumped |
Hi @brandond, could you review this PR? We need two approvals before merging it. |
Pull Request Checklist
Types of Change
ImagePullPolicy: "Always"
fromdaemonset
anddeployment
According to documentation if you specify version of image tag, automatically ImagePullPolicy is set to
IfNotPressent
.And vice versa if you not specify version of image tag (keep latest) ImagePullPolicy is set to
Always
.So keep ImagePullPolicy hard coded to
Always
in charts does not make sense.It overrides to
Always
even if image tag is defined.Linked Issues
Additional Notes
After the PR is merged
Once the PR is merged, typically upon a new release, the necessary teams will be notified via Slack hook to perform the RKE2 Charts and RKE2 changes. Any developer working on this issue is not responsible for updating RKE2 Charts or RKE2.