Skip to content

Commit

Permalink
Role and RoleBinding not installed for webhook-init in Helm `pr…
Browse files Browse the repository at this point in the history
…e-hook` (#1379)

* Update rbac.yaml

* Update Chart.yaml
  • Loading branch information
zzvara authored Nov 1, 2021
1 parent 4637882 commit 6e149e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/spark-operator-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: spark-operator
description: A Helm chart for Spark on Kubernetes operator
version: 1.1.8
version: 1.1.9
appVersion: v1beta2-1.2.3-3.1.1
keywords:
- spark
Expand Down
6 changes: 6 additions & 0 deletions charts/spark-operator-chart/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "spark-operator.fullname" . }}
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-delete-policy": hook-failed
labels:
{{- include "spark-operator.labels" . | nindent 4 }}
rules:
Expand Down Expand Up @@ -108,6 +111,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "spark-operator.fullname" . }}
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-delete-policy": hook-failed
labels:
{{- include "spark-operator.labels" . | nindent 4 }}
subjects:
Expand Down

0 comments on commit 6e149e8

Please sign in to comment.