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

Reduce complexity by merging configmap/secret into secret #1179

Merged
merged 3 commits into from
Apr 23, 2022

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Oct 29, 2020

This PR is meant to close #1176.

The value of doing this is simply to reduce the complexity of things. As one can see from the deleted code in the Helm templates, it is quite messy code that is hard to parse and generally hard to maintain. I really hope to make this Helm chart easier to maintain by reducing complexity wherever we can.

Review notes

This is ready for merge in my mind, but it would be good to eyeball it on mybinder.org's staging environment as well.

@consideRatio consideRatio added the maintenance Under the hood improvements and fixes label Oct 29, 2020
@consideRatio consideRatio force-pushed the pr/merge-config-sources branch from dc33d83 to 6ca4dc0 Compare October 30, 2020 16:36
@@ -30,9 +30,7 @@ spec:
{{- end }}
{{- end }}
annotations:
# This lets us autorestart when the configmap changes!
Copy link
Member

Choose a reason for hiding this comment

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

Can we keep this comment?

Copy link
Member

Choose a reason for hiding this comment

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

Looks like this comment is still missing.

@betatim
Copy link
Member

betatim commented Nov 3, 2020

Are there any steps people need to take to transition from the CM+Secret setup to the Secret only setup? I think it is all automated.

@consideRatio
Copy link
Member Author

consideRatio commented Nov 3, 2020

Thank you for the review @betatim! ❤️ 🎉

Are there any steps people need to take to transition from the CM+Secret setup to the Secret only setup? I think it is all automated.

It is all automated since Helm is always creating/updating these resources. It could make sense to have a k8s upgrade step like we have in z2jh to verify upgrades between changes work btw. I created #1195 to represent that wish.

@consideRatio consideRatio force-pushed the pr/merge-config-sources branch from 3f5896c to c99b31c Compare November 3, 2020 23:31
@consideRatio
Copy link
Member Author

consideRatio commented Nov 4, 2020

The test failure can be ignored, a rebase didn't make it run with updated tests apparently, but the error is fixed in #1201. Woops, they are fixed by #1203.

@consideRatio consideRatio force-pushed the pr/merge-config-sources branch from c99b31c to fc61cfb Compare November 4, 2020 01:09
@consideRatio consideRatio changed the title Reduce complexity by merging configmap/secret into secret [MRG] Reduce complexity by merging configmap/secret into secret Nov 15, 2020
@consideRatio consideRatio force-pushed the pr/merge-config-sources branch from fc61cfb to dc3df7f Compare December 11, 2020 22:03
@consideRatio
Copy link
Member Author

Hi @minrk @betatim! Just a friendly reminder of this maintenance PR.

@consideRatio
Copy link
Member Author

@minrk does this LGTY?

Copy link
Member

@sgibson91 sgibson91 left a comment

Choose a reason for hiding this comment

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

I think this is good to merge once the conflicts have been resolved?

@manics
Copy link
Member

manics commented Feb 17, 2022

Ping @consideRatio! @sgibson91 has approved this subject to conflicts.

@consideRatio consideRatio force-pushed the pr/merge-config-sources branch from dc3df7f to 9968e23 Compare April 22, 2022 16:10
@consideRatio consideRatio changed the title [MRG] Reduce complexity by merging configmap/secret into secret Reduce complexity by merging configmap/secret into secret Apr 22, 2022
@consideRatio
Copy link
Member Author

Rebased, I think this is ready for review again!

Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
@consideRatio consideRatio merged commit 66ca304 into jupyterhub:master Apr 23, 2022
consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Apr 23, 2022
jupyterhub/binderhub#1179 Merge pull request #1179 from consideRatio/pr/merge-config-sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code:helm-chart Helm template changes. maintenance Under the hood improvements and fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Put all config in a k8s Secret, don't split it up into ConfigMap/Secret
5 participants