Skip to content

Commit

Permalink
Refactor rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewuolle committed Nov 13, 2024
1 parent c88f05d commit c689cd1
Showing 1 changed file with 48 additions and 4 deletions.
52 changes: 48 additions & 4 deletions templates/provider/hmc/templates/rbac/controller/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,18 +206,50 @@ rules:
- patch
- update
- apiGroups:
- ""
- ""
resources:
- secrets
verbs: {{ include "rbac.editorVerbs" . | nindent 4 }}
- secrets
verbs:
- get
- list
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedclusters
verbs: {{ include "rbac.editorVerbs" . | nindent 4 }}
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedclusters/finalizers
verbs:
- update
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedclusters/status
verbs:
- get
- patch
- update
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedmachines
- unmanagedmachines/status
verbs: {{ include "rbac.editorVerbs" . | nindent 4 }}
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedmachines/finalizers
verbs:
- update
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedmachines/status
verbs:
- get
- patch
- update
- apiGroups:
- cluster.x-k8s.io
resources:
Expand Down Expand Up @@ -259,7 +291,19 @@ rules:
- hmc.mirantis.com
resources:
- unmanagedclusters
verbs: {{ include "rbac.viewerVerbs" . | nindent 4 }}
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedclusters/status
verbs: {{ include "rbac.viewerVerbs" . | nindent 4 }}
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedmachines
verbs: {{ include "rbac.viewerVerbs" . | nindent 4 }}
- apiGroups:
- hmc.mirantis.com
resources:
- unmanagedmachines/status
verbs: {{ include "rbac.viewerVerbs" . | nindent 4 }}

0 comments on commit c689cd1

Please sign in to comment.