Add ability to customize the service account name.

This commit is contained in:
Yi Hong
2026-03-19 14:36:51 -04:00
parent 0f5dc3a2d0
commit 424dee1895
4 changed files with 18 additions and 0 deletions

View File

@ -461,3 +461,15 @@ tests:
echo "Trying again in 3 seconds..."
done
echo "Gitea has been reached!"
- it: should render service account name correctly
template: templates/statefulset.yaml
set:
enabled: true
statefulset:
serviceAccountName: "my-service-account"
asserts:
- hasDocuments:
count: 1
- equal:
path: spec.template.spec.serviceAccountName
value: "my-service-account"