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

cadence: allow existingSecret to be used in schema setup #1328

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

mrd000
Copy link
Contributor

@mrd000 mrd000 commented Dec 1, 2022

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets none found
License Apache 2.0

What's in this PR?

This PR makes cadence schema setup part of the helm chart work when a database password is only stored as a k8s secret via existingSecret parameter and not supplied via the password parameter. It currently works with schema setup/update being off. (schema/setup/enabled: false and schema/update/enabled: false.

Why?

This PR tries to fix the inconsistency of the chart behaviour. At the moment existingSecret would only work alone if the schema setup/update is not enabled. Once it's enabled there is an error reported by helm requiring the password being explicitly given to the chart as a value.

Additional context

The change was tested on my test k8s setup.

Checklist

  • not sure ] Code meets the Developer Guide
  • User guide and development docs updated (if needed)
  • Related Helm chart(s) updated (if needed)

Copy link
Member

@pregnor pregnor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @akijakya please test it with the regular flow we are using in Pipeline

@akijakya
Copy link
Contributor

akijakya commented Dec 7, 2022

Tested, didn't experience any issues, however @mrd000 please also bump the chart patch version to 0.24.1!

@mrd000
Copy link
Contributor Author

mrd000 commented Dec 7, 2022

Tested, didn't experience any issues, however @mrd000 please also bump the chart patch version to 0.24.1!

Done! I did not realise I'd need to do that, sorry.

@akijakya akijakya merged commit 7b40c6a into banzaicloud:master Dec 7, 2022
@akijakya
Copy link
Contributor

akijakya commented Dec 7, 2022

Tested, didn't experience any issues, however @mrd000 please also bump the chart patch version to 0.24.1!

Done! I did not realise I'd need to do that, sorry.

NP 🙂

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