-
Notifications
You must be signed in to change notification settings - Fork 14k
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
feat: Helm - custom service account creation and management #17880
feat: Helm - custom service account creation and management #17880
Conversation
Could you bump version of the chart manually ? |
Sure! It's done :) |
@amitmiran137 there is something wrong with workflow. It shows error in code which I didn't change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please also put the serviceAccountName to "init-job" also?
# Create custom service account for Superset. If create: true and name is not provided, superset.fullname will be used. | ||
# serviceAccountName: superset | ||
serviceAccount: | ||
create: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
- Remove "serviceAccountName"
- creating serviceAccount sestion as you did with two properties:
- create as you did
- name
According to: https://helm.sh/docs/chart_best_practices/rbac/#yaml-configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've thought about it. That was even my first choice, but then I've noticed that, there was ServiceAccountName
variable added in the past #15340, so I've implemented new feature as enhancement beside the current solution.
I don't want to destroy any configs that can exist somewhere.
@mvoitko and @craig-rueda can you give some more feedback about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeps you are right, we would break backward compatibility but on the other site, we could maintain both for sometime and prepare a communication about that right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone have blocked version on helm in their definition it's OK, but when someone is using "latest" it will brake down deployment (or dependent components).
Supporting two solutions for a while should be quite easy (I'll just add one more conditions in _helpers
) but this could cause some caveats such as overwriting values if serviceAccountName
and serviceAccount.name
would be defined in the same time. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it LGTM. If people are using "latest" in any env that matters, that's generally a bad practice. Using the default of create: false
seems reasonable to me.
@przemyslawandruszewski I've added support for custom service account in init-job in this commit: 372fed1 |
Yes we became aware lately |
@wiktor2200 I cannot find any template for creating service account when serviceAccount.create == true. Could you validate whether you commited all the stuff? |
@przemyslawandruszewski you got right, thanks for notifying that. |
The rest is fine for me, let's leave final decision for @craig-rueda :) |
@craig-rueda Pipeline failed because of missing license header. I've added it, could you re-approve? :) |
@wiktor2200 looks like you can merge :) |
Sorry then :) So the request goes to @craig-rueda :) |
…7880) * feat: Custom service account creation and management * bump helm chart version * add custom service account in init-job * service account creation template * changed service account creation template * add license
…7880) * feat: Custom service account creation and management * bump helm chart version * add custom service account in init-job * service account creation template * changed service account creation template * add license
SUMMARY
Possibility to create custom service account in helm chart.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
I've tested all possible changes on parameters:
All conditionals in
_helpers
file works as expected.ADDITIONAL INFORMATION