Merge pull request #45 from elgnay/add-finalizer-to-role

Add finalizer to role/rolebinding for work agent
This commit is contained in:
OpenShift Merge Robot
2020-06-23 18:04:44 +02:00
committed by GitHub
3 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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"]

View File

@@ -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