Skip to content
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

Merged
merged 7 commits into from
Mar 30, 2023

Conversation

uncycler
Copy link
Contributor

@uncycler uncycler commented Mar 24, 2023

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.

Signed-off-by: Frédéric Marchand <[email protected]>
@romange romange requested a review from Pothulapati March 24, 2023 15:04
@@ -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"
Copy link
Contributor

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 }}
Copy link
Contributor

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]>
@romange romange requested a review from Pothulapati March 30, 2023 10:27
@Pothulapati
Copy link
Contributor

Thanks for fixing it @uncycler, I've also quickly added a test case so that we can test this support in the future.

@Pothulapati Pothulapati enabled auto-merge (squash) March 30, 2023 13:36
Copy link
Contributor

@Pothulapati Pothulapati left a 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

@Pothulapati Pothulapati merged commit 10e8318 into dragonflydb:main Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants