-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
service account annotation #6495
Comments
/assign |
Hi @dvirguttman If I understand correctly, you are trying to use the |
Unfortunately, the project is not opernsource (yet) - I will try to check in sample configuration in my own repo. Anyways, I don't really care about |
I have a similar issue building operators internally. All customisation for service accounts in the CSV is discarded. I would like to add I think this happens here: https://github.com/operator-framework/operator-sdk/blob/master/internal/generate/collector/clusterserviceversion.go#L126 |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
@acornett21 is customization of the default service account not supported or could this be fixed? The current workaround is to customize an extra service account and use that instead |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Type of question
General operator-related help
Question
What did you do?
I've implemented my own operator in golang using operator-sdk
What did you expect to see?
My operator service account need to assume an IAM role as described in : https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html
to include
eks.amazonaws.com/role-arn
annotation in my service account manifest.However, no matter what, seems like it is impossible to customize the
serviceAccountName
I also followed the https://sdk.operatorframework.io/docs/advanced-topics/multi-sa/ and when
serviceAccountName
is equals the service-account name - operator-sdk just ignore it and not creating the service account manifest.What did you see instead? Under which circumstances?
The only way I was able to make it work is to let the deployment start and add the annotation manually
I would like to know if there is an option to add this annotation as part of the manifests and make it work without manual steps
Environment
Operator type:
/language go
Kubernetes cluster type:
eks
$ operator-sdk version operator-sdk version: "v1.29.0", commit: "78c564319585c0c348d1d7d9bbfeed1098fab006", kubernetes version: "v1.26.0", go version: "go1.20.4", GOOS: "darwin", GOARCH: "arm64"
$ go version go version go1.20.5 darwin/arm64
kubectl version: 1.27
Additional context
The text was updated successfully, but these errors were encountered: