feat(helm): Expose serviceAccountName on the worker deployment template. - #420
Merged
20001020ycx merged 1 commit intoJul 30, 2026
Conversation
Contributor
WalkthroughThe Helm chart adds an optional templated worker ServiceAccount name, introduces logging-level defaults for liveness, scheduler, and storage configuration, and increments the chart version from ChangesWorker ServiceAccount configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
20001020ycx
force-pushed
the
feat/2026-07-29-worker-service-account
branch
from
July 29, 2026 21:09
69307c0 to
2a30602
Compare
sitaowang1998
previously approved these changes
Jul 29, 2026
4 tasks
20001020ycx
force-pushed
the
feat/2026-07-29-worker-service-account
branch
from
July 30, 2026 19:27
2a30602 to
b5d1b86
Compare
hoophalab
approved these changes
Jul 30, 2026
LinZhihao-723
approved these changes
Jul 30, 2026
LinZhihao-723
left a comment
Member
There was a problem hiding this comment.
iiuc, is it better to use:
feat(helm): Expose `serviceAccountName` on the worker deployment template.
Like I don't understand why it's "Deployment` a capital 'D'.
serviceAccountName on the worker Deployment.serviceAccountName on the worker deployment template.
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
The worker Deployment doesn't set a
serviceAccountName, so worker pods always run under the namespace's default ServiceAccount. On cloud deployments this blocks identity-based auth — e.g., on EKS, IRSA grants an IAM role through annotations on a ServiceAccount, so a workload that can't select a ServiceAccount can't use keyless S3 access.This exposes an optional
spiderConfig.worker.service_account_namevalue, rendered throughtpllike the existingextra_envs/extra_volumes/extra_volume_mountshooks, so a parent chart can pass a templated name. The immediate consumer is CLP's chart, which embeds this chart as a subchart and needs the worker to run under the same ServiceAccount as its own workers (compression-worker-deployment.yaml#L24); see the review discussion in y-scope/clp#2418.When the value is empty (the default), the field is omitted and the rendered Deployment is unchanged.
Also bumps the chart version to 0.1.6.
Checklist
breaking change.
Validation performed
helm lintpasses.helm templatewith default values renders the worker Deployment without aserviceAccountName(unchanged behavior).--set spiderConfig.worker.service_account_name=my-sarendersserviceAccountName: "my-sa".{{ .Release.Name }}-clp-service-account(as a parent chart would) rendersserviceAccountName: "test-clp-service-account"for a release namedtest.Summary by CodeRabbit
New Features
Chores