Skip to content

Commit

Permalink
fix(helm): Fix "Label exempted namespaces" (#2290)
Browse files Browse the repository at this point in the history
Fix the RBAC for labeling namespace for post upgrade job

Signed-off-by: Zhimin Xiang <xiangzhimin1010@gmail.com>

Signed-off-by: Zhimin Xiang <xiangzhimin1010@gmail.com>
  • Loading branch information
ZhiminXiang committed Sep 30, 2022
1 parent 512d97e commit 55a1bd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -73,7 +73,7 @@ metadata:
---
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
name: gatekeeper-update-namespace-label-post-upgrade
labels:
Expand Down Expand Up @@ -101,7 +101,7 @@ rules:
---
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
name: gatekeeper-update-namespace-label-post-upgrade
labels:
Expand All @@ -113,7 +113,7 @@ metadata:
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
kind: ClusterRole
name: gatekeeper-update-namespace-label-post-upgrade
subjects:
- kind: ServiceAccount
Expand Down
Expand Up @@ -73,7 +73,7 @@ metadata:
---
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
name: gatekeeper-update-namespace-label-post-upgrade
labels:
Expand Down Expand Up @@ -101,7 +101,7 @@ rules:
---
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
name: gatekeeper-update-namespace-label-post-upgrade
labels:
Expand All @@ -113,7 +113,7 @@ metadata:
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
kind: ClusterRole
name: gatekeeper-update-namespace-label-post-upgrade
subjects:
- kind: ServiceAccount
Expand Down

0 comments on commit 55a1bd5

Please sign in to comment.