Skip to content
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

cannot impersonate serviceaccount #38

Closed
raffaelespazzoli opened this issue Jul 28, 2022 · 0 comments · Fixed by #39
Closed

cannot impersonate serviceaccount #38

raffaelespazzoli opened this issue Jul 28, 2022 · 0 comments · Fixed by #39

Comments

@raffaelespazzoli
Copy link
Collaborator

when trying to impersonate a service account the following error is generated:

Failed sync attempt to 0.1.9: one or more objects failed to apply, reason: admission webhook "patch-operator-inject.redhatcop.redhat.io" denied the request: template: spec: instanceID: {{ (lookup "dbaas.redhat.com" "DBaaSConnection" "myapp-dev" "mydb-dev").status.instanceID }} :2:18: executing "spec:\n instanceID: {{ (lookup \"dbaas.redhat.com\" \"DBaaSConnection\" \"myapp-dev\" \"mydb-dev\").status.instanceID }}\n" at <lookup "dbaas.redhat.com" "DBaaSConnection" "myapp-dev" "mydb-dev">: error calling lookup: userextras.authentication.k8s.io "d35c3f41-fd65-4d28-a99d-f7bf8a4fe493" is forbidden: User "system:serviceaccount:patch-operator:controller-manager" cannot impersonate resource "userextras/authentication.kubernetes.io/pod-uid" in API group "authentication.k8s.io" at the cluster scope
raffaelespazzoli added a commit to raffaelespazzoli/patch-operator that referenced this issue Jul 28, 2022
Signed-off-by: raffaelespazzoli <[email protected]>
@raffaelespazzoli raffaelespazzoli mentioned this issue Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant