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

Fix broken dependencies in helm chart and allow using existing secrets in the chart #18941

Merged
merged 10 commits into from Aug 10, 2022

Conversation

deepy
Copy link
Contributor

@deepy deepy commented Aug 6, 2022

This PR builds on top of the work from @tedtramonte in #18179 and updates the chart dependencies to the lowest version still available.
The chart in mastodon/mastodon on main currently does not work as it depends on chart versions that no longer exist, this fixes that while also adding the ability to put the SMTP password into a secret.

Additionally this closes #18139

@deepy deepy changed the title Helm refresh Fix broken dependencies in helm chart and allow using existing secrets in the chart Aug 6, 2022
@deepy
Copy link
Contributor Author

deepy commented Aug 6, 2022

This has been tested with an external database

@deepy
Copy link
Contributor Author

deepy commented Aug 7, 2022

Updated to postgresql 11 and tested fine with inline secrets in values.yaml

@deepy
Copy link
Contributor Author

deepy commented Aug 7, 2022

and now SMTP password can also be put in a secret.

This to allow setting LOGIN either in values.yaml or
in the secret.
@deepy
Copy link
Contributor Author

deepy commented Aug 8, 2022

@dunn given your involvement in the issue, would you be able to have a look at this PR?

@dunn
Copy link
Contributor

dunn commented Aug 8, 2022

@deepy oh, thanks for this! looks great, and keeping chart versions relatively up-to-date is a good idea, but i think we should also switch to using the full chart repo #18946 so that things don't break unexpectedly if versions fall slightly out of date

This prevents older versions from disappearing, see
bitnami/charts#10539 for
full context.
@deepy
Copy link
Contributor Author

deepy commented Aug 8, 2022

@dunn thanks for having a look at this! :-)
I agree on the full-archive for charts, but your PR is missing the update to the lock-file so I added the change here as well

@dunn
Copy link
Contributor

dunn commented Aug 8, 2022

@deepy oh right! thanks for picking that up

@Gargron Gargron merged commit 7ccf7a7 into mastodon:main Aug 10, 2022
kadoshita pushed a commit to kadoshita/mastodon that referenced this pull request Nov 19, 2022
…s in the chart (mastodon#18941)

* Add ability to specify an existing Secret (mastodon#18139)

Closes mastodon#18139

* Allow using secrets with external postgres

* Upgrade CronJob to batch/v1

* Allow using redis.auth.existingSecret

* Helmignore mastodon-*.tgz for easy local development

* Upgrade helm dependencies

* Upgrade postgresql to 11

* Allow putting SMTP password into a secret

* Add optional login to SMTP secret

This to allow setting LOGIN either in values.yaml or
in the secret.

* Switch to bitnami charts full archive

This prevents older versions from disappearing, see
bitnami/charts#10539 for
full context.

Co-authored-by: Ted Tramonte <ted.tramonte@gmail.com>
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.

Use an existing Secret in Helm Chart
4 participants