-
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: add possibility to specify Service Account name for the Deployment in the Helm chart #15340
feat: add possibility to specify Service Account name for the Deployment in the Helm chart #15340
Conversation
@craig-rueda could you please review? |
@@ -53,6 +53,7 @@ spec: | |||
app: {{ template "superset.name" . }}-worker | |||
release: {{ .Release.Name }} | |||
spec: | |||
serviceAccountName: {{ .Values.serviceAccountName }} |
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.
can you wrap this with an 'if' that checks whether the SA name is set, and then leave the value empty in values.yaml?
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.
What do you mean by SA name is set? I could check if the value is empty in values then I could skip this. Do you mean smth like:
{{ if .Values.serviceAccountName }}
serviceAccountName: {{ .Values.serviceAccountName }}
{{ end }}
But i would prefer to eliminate "if" statements to make code more clear
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.
Yep, like that. Allows the field to remain unset if unused
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.
@craig-rueda please approve
3f81132
to
a2c66ec
Compare
helm/superset/Chart.yaml
Outdated
@@ -22,7 +22,7 @@ maintainers: | |||
- name: craig-rueda | |||
email: [email protected] | |||
url: https://github.com/craig-rueda | |||
version: 0.1.6 | |||
version: 0.2.6 |
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.
Pls set the version to 0.2.0
a2c66ec
to
f2fa729
Compare
It seems to me that |
… the Helm chart (apache#15340) Co-authored-by: Maksym V <[email protected]>
… the Helm chart (apache#15340) Co-authored-by: Maksym V <[email protected]>
… the Helm chart (apache#15340) Co-authored-by: Maksym V <[email protected]>
SUMMARY
We need to be able specify Service Account name differing from the default which will have permissions needed for the Superset
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
helm install superset .
ADDITIONAL INFORMATION