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

fix: preprovisioned service account unable to be included in deployment #74

Merged
merged 3 commits into from
May 10, 2024

Conversation

zoomoid
Copy link
Contributor

@zoomoid zoomoid commented May 8, 2024

#71 excludes serviceAccounts in the deployment template entirely if serviceAccount.enabled is set to false, meaning it defaults to "default" for the deployment. Previously, we could create a service account that was named identical to fullname, i.e., either the release name or an override via values, and have that SA be used for the pod.

This PR re-adds the ability to use service accounts in the deployment without creating one, and also extends upon the pre-#71 behavior of allowing you to set the name of the service account to use via serviceAccount.name. The property is not set in the chart's default values, and defaults to the fullname behavior of < v0.9.4.

Additionally, we also swapped out a bunch of "templates" for "includes", as per https://helm.sh/docs/howto/charts_tips_and_tricks/#using-the-include-function.

Signed-off-by: Alexander Bartolomey <github@alexanderbartolomey.de>
@zoomoid zoomoid requested a review from a team as a code owner May 8, 2024 16:32
Signed-off-by: Alexander Bartolomey <github@alexanderbartolomey.de>
Copy link
Member

@DrPsychick DrPsychick left a comment

Choose a reason for hiding this comment

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

Thanks for this important fix. Do you want to bump the Chart version for a release?

Signed-off-by: Alexander Bartolomey <github@alexanderbartolomey.de>
@DrPsychick DrPsychick merged commit 1fb640b into gomods:main May 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants