1 # If the admission webhook is enabled, then a post-install step is required
2 # to generate and install the secret in the operator namespace.
4 # In the post-install hook, the token corresponding to the operator service account
5 # is used to authenticate with the Kubernetes API server to install the secret bundle.
10 name: {{ include "sparkoperator.fullname" . }}
12 app.kubernetes.io/name: {{ include "sparkoperator.name" . }}
13 helm.sh/chart: {{ include "sparkoperator.chart" . }}
14 app.kubernetes.io/instance: {{ .Release.Name }}
15 app.kubernetes.io/managed-by: {{ .Release.Service }}
20 app.kubernetes.io/name: {{ include "sparkoperator.name" . }}
21 app.kubernetes.io/version: {{ .Values.operatorVersion }}
26 {{- if .Values.enableMetrics }}
28 prometheus.io/scrape: "true"
29 prometheus.io/port: "{{ .Values.metricsPort }}"
30 prometheus.io/path: {{ .Values.metricsEndpoint }}
33 app.kubernetes.io/name: {{ include "sparkoperator.name" . }}
34 app.kubernetes.io/version: {{ .Values.operatorVersion }}
38 serviceAccountName: {{ include "sparkoperator.serviceAccountName" . }}
39 {{- if .Values.enableWebhook }}
43 secretName: spark-webhook-certs
47 image: {{ .Values.operatorImageName }}:{{ .Values.operatorVersion }}
48 imagePullPolicy: {{ .Values.imagePullPolicy }}
49 {{- if .Values.enableWebhook }}
52 mountPath: /etc/webhook-certs
54 {{- if .Values.enableMetrics }}
56 - containerPort: {{ .Values.metricsPort }}
60 - -namespace={{ .Values.sparkJobNamespace }}
61 - -ingress-url-format={{ .Values.ingressUrlFormat }}
62 - -install-crds={{ .Values.installCrds }}
63 - -controller-threads={{ .Values.controllerThreads }}
64 - -resync-interval={{ .Values.resyncInterval }}
66 {{- if .Values.enableMetrics }}
67 - -enable-metrics=true
68 - -metrics-labels=app_type
69 - -metrics-port={{ .Values.metricsPort }}
70 - -metrics-endpoint={{ .Values.metricsEndpoint }}
71 - -metrics-prefix={{ .Values.metricsPrefix }}
73 {{- if .Values.enableWebhook }}
74 - -enable-webhook=true
75 - -webhook-svc-namespace={{ .Release.Namespace }}
76 - -webhook-port={{ .Values.webhookPort }}
77 - -webhook-svc-name={{ .Release.Name }}-webhook
78 - -webhook-config-name={{ include "sparkoperator.fullname" . }}-webhook-config