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

Implemented the unmanaged cluster CRD for adopting existing k8s clusters #623

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor rbac
kylewuolle committed Nov 13, 2024
commit c689cd11ce87cbeeafa98675ab2c7a1436d0654c
52 changes: 48 additions & 4 deletions templates/provider/hmc/templates/rbac/controller/roles.yaml
Original file line number Diff line number Diff line change
@@ -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:
@@ -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 }}