mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-10 11:19:11 +00:00
Merge pull request #45 from elgnay/add-finalizer-to-role
Add finalizer to role/rolebinding for work agent
This commit is contained in:
@@ -214,6 +214,8 @@ kind: Role
|
||||
metadata:
|
||||
name: {{ .ManagedClusterName }}:managed-cluster-work
|
||||
namespace: {{ .ManagedClusterName }}
|
||||
finalizers:
|
||||
- cluster.open-cluster-management.io/manifest-work-cleanup
|
||||
rules:
|
||||
# Allow work agent to send event to hub
|
||||
- apiGroups: ["", "events.k8s.io"]
|
||||
@@ -249,6 +251,8 @@ kind: RoleBinding
|
||||
metadata:
|
||||
name: {{ .ManagedClusterName }}:managed-cluster-work
|
||||
namespace: {{ .ManagedClusterName }}
|
||||
finalizers:
|
||||
- cluster.open-cluster-management.io/manifest-work-cleanup
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
|
||||
@@ -3,6 +3,8 @@ kind: Role
|
||||
metadata:
|
||||
name: {{ .ManagedClusterName }}:managed-cluster-work
|
||||
namespace: {{ .ManagedClusterName }}
|
||||
finalizers:
|
||||
- cluster.open-cluster-management.io/manifest-work-cleanup
|
||||
rules:
|
||||
# Allow work agent to send event to hub
|
||||
- apiGroups: ["", "events.k8s.io"]
|
||||
|
||||
@@ -3,6 +3,8 @@ kind: RoleBinding
|
||||
metadata:
|
||||
name: {{ .ManagedClusterName }}:managed-cluster-work
|
||||
namespace: {{ .ManagedClusterName }}
|
||||
finalizers:
|
||||
- cluster.open-cluster-management.io/manifest-work-cleanup
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
|
||||
Reference in New Issue
Block a user