Skip to content

Commit

Permalink
Add Operator volumes and volumeMounts in chart (#1475)
Browse files Browse the repository at this point in the history
* Operator volumes and volumeMounts

* Update values.yaml

* Update Chart.yaml

chart version up to 1.1.18

* Update Chart.yaml

1.1.19

* Update values.yaml

remove white space
  • Loading branch information
ocworld authored Feb 14, 2022
1 parent 651c17e commit 55732a6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
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.18
version: 1.1.19
appVersion: v1beta2-1.3.3-3.1.1
keywords:
- spark
Expand Down
16 changes: 14 additions & 2 deletions charts/spark-operator-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,27 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- if .Values.webhook.enable }}
{{- if or .Values.webhook.enable (ne (len .Values.volumeMounts) 0 ) }}
volumeMounts:
{{- end }}
{{- if .Values.webhook.enable }}
- name: webhook-certs
mountPath: /etc/webhook-certs
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if or .Values.webhook.enable (ne (len .Values.volumes) 0 ) }}
volumes:
{{- end }}
{{- if .Values.webhook.enable }}
- name: webhook-certs
secret:
secretName: {{ include "spark-operator.fullname" . }}-webhook-certs
{{- end }}
{{- end }}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/spark-operator-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ podSecurityContext: {}
# securityContext -- Operator container security context
securityContext: {}

# volumes - Operator volumes
volumes: []

# volumeMounts - Operator volumeMounts
volumeMounts: []

webhook:
# -- Enable webhook server
enable: false
Expand Down

0 comments on commit 55732a6

Please sign in to comment.