fix: Make serviceAccount.name and serviceAccount.create work - #742
Open
lfrancke wants to merge 1 commit into
Open
fix: Make serviceAccount.name and serviceAccount.create work#742lfrancke wants to merge 1 commit into
lfrancke wants to merge 1 commit into
Conversation
serviceAccount.name had no effect. This changes it so that the helper (operator.serviceAccountName) is used everywhere, default name is unchanged and with "create: false" giving a name is now required.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
serviceAccount.name had no effect.
The Deployment, the ServiceAccount and the ClusterRoleBinding all hardcoded "-serviceaccount", and the
operator.serviceAccountName helper that we built already was never used 🥳
serviceAccount.create: false also skipped creating the ServiceAccount while the Deployment still referenced the name that no longer existed. So that's not good either.
This changes it so that the helper is used everywhere, default name is unchanged and with "create: false" giving a name is now required.
I'd call this a bug fix as well. Debatable whether this is a breaking change....
Note
I understand that this needs to be fixed in operator-templating but I want to test all my changes on hive operator first and if all those changes are accepted I'll bring them to templating!
Claude created this table for me (CRB = ClusterRoleBinding):
rel-hive-operator-serviceaccountname=my-samy-samy-samy-sacreate=false,name=my-samy-sacreate=false, no nameDefinition of Done Checklist
Author
Reviewer
Acceptance
type/deprecationlabel & add to the deprecation scheduletype/experimentallabel & add to the experimental features tracker