-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor managedcluster-import-role.yaml
- Updated ClusterRole and ClusterRoleBinding names to remove the 'system:' prefix for consistency. - Removed the 'update' verb from the ClusterRole rules. - Added new rules for 'clusters' resource under 'cluster.x-k8s.io' in managedcluster-import-role.yaml. Signed-off-by: xuezhaojun <[email protected]>
- Loading branch information
1 parent
715c8cd
commit 5f73866
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tion/templates/managedcluster-import-agent-registration-bootstrap-clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: 'system:open-cluster-management:managedcluster:bootstrap:agent-registration' | ||
name: 'open-cluster-management:managedcluster:bootstrap:agent-registration' | ||
subjects: | ||
- kind: ServiceAccount | ||
name: agent-registration-bootstrap | ||
namespace: '{{ .Values.global.namespace }}' | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: 'system:open-cluster-management:managedcluster:bootstrap:agent-registration' | ||
name: 'open-cluster-management:managedcluster:bootstrap:agent-registration' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,3 +271,10 @@ rules: | |
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- cluster.x-k8s.io | ||
resources: | ||
- clusters | ||
verbs: | ||
- get | ||
- list |