Open vaibhavjainwiz opened 11 months ago
On analysis, I found that odh-model-controller-role
ClusterRole which is attached the odh-model-controller pod doesn't have access to delete serviceaccounts
.
Solution:
Edit odh-model-controller-role
ClusterRole to provide access for deletion of ServiceAccount.
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- create
- get
- list
- patch
- update
- watch
- delete
Solution: Edit
odh-model-controller-role
ClusterRole to provide access for deletion of ServiceAccount.- apiGroups: - "" resources: - serviceaccounts verbs: - create - get - list - patch - update - watch - delete
Are all these roles needed for deletion?
role for create, get, list, pathc, update and watch is already assigned to serviceaccounts
resource. I just added delete
role.
role for create, get, list, pathc, update and watch is already assigned to
serviceaccounts
resource. I just addeddelete
role.
I see, thanks, we might need to revisit it later to make sure that we are not adding unneeded roles.
Below error is occuring in odh-model-controller logs on deletion of ModelMesh isvc