Skip to content

Commit

Permalink
Trigger Helm chart release
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrossi committed May 30, 2024
1 parent a2fe48e commit 0b9904b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions charts/spark-history-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{/*
Create the name of the secret to use
*/}}
{{- define "data-sanitization.secretName" -}}
{{- define "spark-history-server.secretName" -}}
{{- if .Values.secret.create }}
{{- default (include "data-sanitization.fullname" .) .Values.secret.name }}
{{- default (include "spark-history-server.fullname" .) .Values.secret.name }}
{{- else }}
{{- default "default" .Values.secret.name }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/spark-history-server/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
name: {{ include "spark-history-server.fullname" . }}-config
labels:
{{- include "data-sanitization.labels" . | nindent 4 }}
{{- include "spark-history-server.labels" . | nindent 4 }}
data:
spark-defaults.conf: |-
spark.hadoop.fs.s3a.endpoint=https://{{ .Values.s3.endpoint }}
Expand Down
18 changes: 9 additions & 9 deletions charts/spark-history-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
value: "false"
envFrom:
- secretRef:
name: {{ include "data-sanitization.secretName" . }}
name: {{ include "spark-history-server.secretName" . }}
volumeMounts:
- name: config
mountPath: /opt/spark/conf/spark-defaults.conf
Expand All @@ -49,14 +49,14 @@ spec:
- name: http
containerPort: 18080
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
Expand Down
4 changes: 2 additions & 2 deletions charts/spark-history-server/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Job
metadata:
name: create-sanitization-spark-events-bucket
labels:
{{- include "data-sanitization.labels" . | nindent 4 }}
{{- include "spark-history-server.labels" . | nindent 4 }}
spec:
template:
spec:
Expand All @@ -12,7 +12,7 @@ spec:
image: quay.io/minio/minio:RELEASE.2024-03-15T01-07-19Z
envFrom:
- secretRef:
name: {{ include "data-sanitization.secretName" . }}
name: {{ include "spark-history-server.secretName" . }}
command:
- /bin/sh
- -c
Expand Down
4 changes: 2 additions & 2 deletions charts/spark-history-server/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "data-sanitization.secretName" . }}
name: {{ include "spark-history-server.secretName" . }}
labels:
{{- include "data-sanitization.labels" . | nindent 4 }}
{{- include "spark-history-server.labels" . | nindent 4 }}
{{- with .Values.secret.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down

0 comments on commit 0b9904b

Please sign in to comment.