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

feat: add possibility to specify Service Account name for the Deployment in the Helm chart #15340

Conversation

mvoitko
Copy link
Contributor

@mvoitko mvoitko commented Jun 23, 2021

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

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@mvoitko
Copy link
Contributor Author

mvoitko commented Jun 23, 2021

@craig-rueda could you please review?

@mvoitko mvoitko changed the title Add possibility to specify Service Account name for the Deployment in the Helm chart feat: add possibility to specify Service Account name for the Deployment in the Helm chart Jun 24, 2021
@@ -53,6 +53,7 @@ spec:
app: {{ template "superset.name" . }}-worker
release: {{ .Release.Name }}
spec:
serviceAccountName: {{ .Values.serviceAccountName }}
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@craig-rueda please approve

@mvoitko mvoitko force-pushed the feature/add-service-account-configuration-to-helm-deployment branch from 3f81132 to a2c66ec Compare June 25, 2021 13:41
@@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda
email: craig@craigrueda.com
url: https://github.com/craig-rueda
version: 0.1.6
version: 0.2.6
Copy link
Member

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

@mvoitko mvoitko force-pushed the feature/add-service-account-configuration-to-helm-deployment branch from a2c66ec to f2fa729 Compare June 26, 2021 09:07
@amitmiran137 amitmiran137 merged commit 22d23fc into apache:master Jun 26, 2021
@mvoitko mvoitko deleted the feature/add-service-account-configuration-to-helm-deployment branch June 27, 2021 09:57
@slumbi
Copy link

slumbi commented Sep 10, 2021

It seems to me that serviceAccountName has not been added to values.yaml

@mvoitko
Copy link
Contributor Author

mvoitko commented Sep 10, 2021

@slumbi that's why we have this line

cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
… the Helm chart (apache#15340)

Co-authored-by: Maksym V <maksym.v@pm.bet>
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
… the Helm chart (apache#15340)

Co-authored-by: Maksym V <maksym.v@pm.bet>
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
… the Helm chart (apache#15340)

Co-authored-by: Maksym V <maksym.v@pm.bet>
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants