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

[litmus] mongodb rootPassword is converted to an integer #339

Closed
wrdls opened this issue Oct 9, 2023 · 1 comment
Closed

[litmus] mongodb rootPassword is converted to an integer #339

wrdls opened this issue Oct 9, 2023 · 1 comment

Comments

@wrdls
Copy link

wrdls commented Oct 9, 2023

The default rootPassword gets automatically converted to an int by YAML parser libraries.

This makes the env of the post-upgrade-hook Job look like this:

          env:
            - name: DB_PASSWORD
              value: 1234
            - name: DB_USER
              value: root

Which is not a valid Job because env values need to be strings.

Change the default to something that will always be a string (e.g. abc123) or make sure to apply proper quoting with the | quote function.

Haven't checked the whole chart but it's at least an issue here: https://github.com/litmuschaos/litmus-helm/blob/master/charts/litmus/templates/post-upgrade-hook.yaml#L43

@wrdls wrdls changed the title mongodb rootPassword is converted to an integer [litmus] mongodb rootPassword is converted to an integer Oct 9, 2023
@Jonsy13
Copy link
Contributor

Jonsy13 commented Apr 8, 2024

The upgrade job has been removed in 3.x for now. So this issue shouldn't be happening. Closing this issue, feel free to open if the issue still persists. Thanks!

@Jonsy13 Jonsy13 closed this as completed Apr 8, 2024
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

No branches or pull requests

2 participants