-
Notifications
You must be signed in to change notification settings - Fork 729
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
ECK Helm chart does not use the serviceAccount.create property during the installation #4002
Comments
Thanks @charith-elastic ! Will your commit also avoid creating role and rolebinding for existing ServiceAccount? |
No. Any particular reason why you want to do that? |
For two reasons:
Another solution might be to extend theteam permissions with ECK specific RBAC permission, so we can leave SA creation to ECK Helm, but in that case we need a list of what these permissions are. Do you know if this is documented somewhere, or place in the code where I can take a look? |
The intention of The permissions required are not explicitly documented but you can inspect the |
Bug Report
What did you do?
I tried installing ECK Operator with Helm as restricted installation following the official documentation. I tried configuring ECK Operator/Helm to use existing
ServiceAccount
(created manually) and not create new one during the installation by setting the propertiesserviceAccount.create:false
andserviceAccount.name:"elastic-operator"
as described in the values.yaml.What did you expect to see?
That existing
ServiceAccount
is being used and that Helm does not try to create one during the installation.What did you see instead? Under which circumstances?
When running
helm install
I see that it tries to create newServiceAccount
, but finds out that the resource already exists with the same name and returns validation errors forlabels
andannotations
not being set as expected.After investigation the ECK Helm chart templates it seems that the
serviceAccount.create
property has not been used in any if-statements to check ifServiceAccount
creation shall be performed or notEnvironment
The text was updated successfully, but these errors were encountered: