Skip to content

Commit

Permalink
[Spark operator] Remove webhook leftovers (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtopper authored Dec 25, 2024
1 parent 6ba4c82 commit 12b7ac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion stable/spark-operator/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: 2.0.2
version: 2.0.3
appVersion: 2.0.2
keywords:
- apache spark
Expand Down
19 changes: 2 additions & 17 deletions stable/spark-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{{- if .Values.deployment.create }}

# If the admission webhook is enabled, then a post-install step is required
# to generate and install the secret in the operator namespace.

# In the post-install hook, the token corresponding to the operator service account
# is used to authenticate with the Kubernetes API server to install the secret bundle.

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -81,24 +75,15 @@ spec:
value: iguazio
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- if or .Values.webhook.enable (ne (len .Values.volumeMounts) 0 ) }}
{{- if 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 ) }}
{{- if ne (len .Values.volumes) 0 }}
volumes:
{{- end }}
{{- if .Values.webhook.enable }}
- name: webhook-certs
secret:
secretName: {{ include "spark-operator.fullname" . }}-webhook-certs
{{- end }}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down

0 comments on commit 12b7ac6

Please sign in to comment.