Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spark operator] Remove webhook leftovers #1047

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading