Helm hooks don't use the specified service account, is that correct? #4812
-
Hi everyone, I stumbled upon something I find weird. But since I'm new to all this stuff, I'd thought I'd ask here before filing a bug report 😀 I have a Helm chart which I deploy using Flux. The I'd rather not have my specific service account be present in a generic Helm chart. Different clusters could use different service account names. I feel that should be specified in Flux' Is this the correct behavior? If so, why? What's the reason for not using the specified service account for Helm hooks? Can I specify it in the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The HelmRelease |
Beta Was this translation helpful? Give feedback.
-
Aah, right. So I guess that all the things in my Helm charts have used the default SA all along. But since my hook needs to do things that the default SA can not do, I'm suddenly running into it. Right, thanks for your answer! |
Beta Was this translation helpful? Give feedback.
The HelmRelease
.spec.serviceAccountName
has nothing to do with the account under which workloads run, the Flux SA is used to apply the Kubernetes objects, we never alter their definitions.