-
Notifications
You must be signed in to change notification settings - Fork 1k
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
bug(helm): Fix parsing error with statefulset #985
Conversation
Signed-off-by: Frédéric Marchand <[email protected]>
contrib/charts/dragonfly/Chart.yaml
Outdated
@@ -21,7 +21,7 @@ version: v1.0.0 | |||
# incremented each time you make changes to the application. Versions are not expected to | |||
# follow Semantic Versioning. They should reflect the version the application is using. | |||
# It is recommended to use it with quotes. | |||
appVersion: "v1.0.0" | |||
appVersion: "v1.0.1" |
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 don't think this is necessary, as we will update this version with a release candence containing all changes 👀
@@ -86,7 +86,7 @@ containers: | |||
{{- toYaml . | trim | nindent 6 }} | |||
{{- end }} | |||
{{- include "dragonfly.volumemounts" . | trim | nindent 4 }} | |||
{{- if .Values.passwordFromSecret.enable -}} | |||
{{- if .Values.passwordFromSecret.enable }} |
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.
Can you run the golden chart rendering command and also include those changes?
https://github.com/dragonflydb/dragonfly/blob/main/CONTRIBUTING.md#rendering-helm-golden-files
Signed-off-by: Frédéric Marchand <[email protected]>
Signed-off-by: Frédéric Marchand <[email protected]>
Thanks for fixing it @uncycler, I've also quickly added a test case so that we can test this support in the future. |
as they contain extra lines because of formatting
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. Thanks for the contribution @uncycler
When installing the helm chart with persistence to true and using an existingSecret (or with only tls enabled), the following parsing error is triggered:
Error: YAML parse error on dragonfly/templates/statefulset.yaml: error converting YAML to JSON: yaml: line 61: did not find expected key.
This simple PR fixes this.