-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
operator: make imagePullPolicy customizable for csi driver and ceph pods #10966
operator: make imagePullPolicy customizable for csi driver and ceph pods #10966
Conversation
This pull request has merge conflicts that must be resolved before it can be merged. @avanthakkar please rebase it. https://rook.io/docs/rook/latest/Contributing/development-flow/#updating-your-fork |
65bc798
to
403dd98
Compare
403dd98
to
a49703a
Compare
and please ignore my comment in our separate discussion that this overlapped with #10956, it's really a separate feature, thanks. |
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.
please squash your commits since both commits are related to the same changes. Thanks!
39b5d72
to
3589436
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.
LGTM!
@avanthakkar Why do we need to configure image pull policies for both CSI and Ceph images separately? Won't a single configuration for both ceph and csi images suffice? I don't think user environments would require different imagepullpolicy for different images. |
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.
marking request changes until comments are addressed. Thanks!
b4a9e56
to
1e38229
Compare
d44d32c
to
18f4ab3
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.
I have noticed smoke suite in k82 1.25 failing constantly. PTAL
e8af8c6
to
698119a
Compare
698119a
to
a116de9
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.
Approved with a small suggestion, thanks!
pkg/operator/ceph/csi/spec.go
Outdated
@@ -136,6 +137,9 @@ var ( | |||
DefaultResizerImage = "registry.k8s.io/sig-storage/csi-resizer:v1.5.0" | |||
DefaultCSIAddonsImage = "quay.io/csiaddons/k8s-sidecar:v0.5.0" | |||
|
|||
// image pull policy | |||
DefaultCSIImagePullPolicy = "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.
what about this?
DefaultCSIImagePullPolicy = "IfNotPresent" | |
DefaultCSIImagePullPolicy = string(v1.PullIfNotPresent) |
Introduce a new env variable ROOK_CSI_IMAGE_PULL_POLICY in rook operator configmap which should be used to customize the imagePullPolicy for the csi driver and imagePullPolicy property in cephVersionSpec for ceph pods. Signed-off-by: Avan Thakkar <athakkar@redhat.com>
a116de9
to
934aa91
Compare
@@ -32,6 +32,8 @@ Settings can be specified at the global level to apply to the cluster as a whole | |||
Tags also exist that would give the latest version, but they are only recommended for test environments. For example, the tag `v17` will be updated each time a new Quincy build is released. | |||
Using the `v17` tag is not recommended in production because it may lead to inconsistent versions of the image running across different nodes in the cluster. | |||
* `allowUnsupported`: If `true`, allow an unsupported major version of the Ceph release. Currently `pacific` and `quincy` are supported. Future versions such as `reef` (v18) would require this to be set to `true`. Should be set to `false` in production. | |||
`imagePullPolicy`: The image pull policy for the ceph daemon pods. Possible values are `Always`, `IfNotPresent`, and `Never`. |
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.
just a small question, what will happen if mentioned Never
, And image is not present
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.
pod startup will fail.
operator: make imagePullPolicy customizable for csi driver and ceph pods (backport #10966)
Signed-off-by: Avan Thakkar athakkar@redhat.com
Description of your changes:
Introduce a new env variable ROOK_CSI_IMAGE_PULL_POLICY in rook operator configmap which should be used to customize the imagePullPolicy for the csi driver and imagePullPolicy property in cephVersionSpec for ceph pods.
Which issue is resolved by this Pull Request:
Resolves #10783
Checklist:
skip-ci
on the PR.