You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to use the addon template feature to rewrite the managed-serviceaccount API, which needs to create these permissions on the hub cluster:
but I got error when deploying the addon:
#managedClusterAddon
message: |-
Failed to set permission for hub agent: rolebindings.rbac.authorization.k8s.io "open-cluster-management:managed-serviceaccount:clusterrole:agent" is forbidden: user "system:serviceaccount:open-cluster-management-hub:addon-manager-controller-sa" (groups=["system:serviceaccounts" "system:serviceaccounts:open-cluster-management-hub" "system:authenticated"]) is attempting to grant RBAC permissions not currently held:
{APIGroups:[""], Resources:["configmaps"], Verbs:["*"]}
{APIGroups:[""], Resources:["secrets"], Verbs:["*"]}
{APIGroups:["authentication.open-cluster-management.io"], Resources:["managedserviceaccounts"], Verbs:["get" "list" "watch"]}
{APIGroups:["authentication.open-cluster-management.io"], Resources:["managedserviceaccounts/status"], Verbs:["get" "update" "patch"]}
{APIGroups:["coordination.k8s.io"], Resources:["leases"], Verbs:["*"]}
reason: SetPermissionFailed
status: "False"
type: RegistrationApplied
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The addon can be deployed successfully. OR some docs explain how to hand this.
Environment ie: OCM version, Kubernetes version and provider:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to use the addon template feature to rewrite the managed-serviceaccount API, which needs to create these permissions on the hub cluster:
but I got error when deploying the addon:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The addon can be deployed successfully. OR some docs explain how to hand this.
Environment ie: OCM version, Kubernetes version and provider:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: