-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update RBAC configurations for managed cluster agent registration
- Added RBAC permissions for 'clusters' resource in rbac_gen.go. - Updated ClusterRole and ClusterRoleBinding names to remove the 'system:' prefix for consistency. - Added 'clusters' resource rules to managedcluster-import-role.yaml. These changes enhance the RBAC definitions for better alignment with the current resource naming conventions. Signed-off-by: xuezhaojun <[email protected]>
- Loading branch information
1 parent
715c8cd
commit 9dc2203
Showing
4 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...-foundation/templates/managedcluster-import-agent-registration-bootstrap-clusterrole.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
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.