-
Notifications
You must be signed in to change notification settings - Fork 609
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(chart): add "encrypted" and custom storageclass parameters #9007
base: master
Are you sure you want to change the base?
Conversation
@fllaca |
@mantissahz Can you help follow up with the issue? Thank you. |
354d178
to
f0d49bb
Compare
hi @derekbit @mantissahz , thank you for your review! I've added the |
Hi @fllaca, |
f0d49bb
to
22f1370
Compare
@mantissahz Fixed! I unavertedly removed those lines while rearranging the order of the new parameters I was introducing. Thanks! |
dde0904
to
2d5ebf2
Compare
2d5ebf2
to
4e165dd
Compare
hi @derekbit @mantissahz , just following up 🙏 , trying to get this PR over the finish line if you think this little feature in the helm chart is worth it. thanks!! |
@@ -54,3 +54,9 @@ data: | |||
{{- if .Values.persistence.disableRevisionCounter }} | |||
disableRevisionCounter: "{{ .Values.persistence.disableRevisionCounter }}" | |||
{{- end }} | |||
{{- if .Values.persistence.encrypted }} |
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.
Suggest below making the variables self-explanatory.
{{- if .Values.persistence.encrypted }}
encrypted: {{ .Values.persistence.encrypted }}
{{- if .Values.persistence.encryptionParameters }}
{{ .Values.persistence.encryptionParameters | toYaml | nindent 6 }}
{{- end }}
{{- 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.
Done! thanks!
@longhorn/doc needs to review the README before merging as usual. cc @derekbit |
e474f89
to
562afd4
Compare
…ss options Signed-off-by: Fernando Llaca <ferllarom@gmail.com>
562afd4
to
429cdc8
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, @fllaca Could you please solve the pending conversations?
And README.md needs to be reviewed, cc @longhorn/doc.
chart/values.yaml
Outdated
@@ -172,6 +172,10 @@ persistence: | |||
selector: "" | |||
# -- Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: "ignored", "enabled", "disabled") | |||
removeSnapshotsDuringFilesystemTrim: ignored | |||
# -- Setting that allows you to specify extra parameters for the default Longhorn StorageClass. | |||
# It must be a map of string to string. (Example: `{"encrypted": "true" }`) | |||
extraParameters: {} |
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 @fllaca,
If this extraParameters
is only used for the encrypted
, can we change it to an independent part like backingImage
persistence:
encrypted:
enabled: false
csiParmeters: {}
...
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.
Is this naming acceptable to you, @fllaca?
This pull request is now in conflict. Could you fix it @fllaca? 🙏 |
Hello @fllaca |
This pull request is now in conflict. Could you fix it @fllaca? 🙏 |
Allow setting the
encrypted
parameter plus any custom parameter in the Longhorn default StorageClass, to allow volume encryption as documented in Setting up Kubernetes Secrets and StorageClasses. Example Helm values file: