From c9971b71907137ac0152ba0a186fa194d5f11f77 Mon Sep 17 00:00:00 2001 From: Matthew Rossi Date: Fri, 19 Jul 2024 13:58:15 +0200 Subject: [PATCH] Ignore if bucket/directory already exists --- charts/spark-history-server/Chart.yaml | 2 +- charts/spark-history-server/templates/job.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/spark-history-server/Chart.yaml b/charts/spark-history-server/Chart.yaml index 1c47213..3894c95 100644 --- a/charts/spark-history-server/Chart.yaml +++ b/charts/spark-history-server/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 name: spark-history-server description: A Helm chart for Spark History Server in Kubernetes -version: 1.0.2 +version: 1.0.3 appVersion: "1.0.0" diff --git a/charts/spark-history-server/templates/job.yaml b/charts/spark-history-server/templates/job.yaml index 9526439..8a2bfb8 100644 --- a/charts/spark-history-server/templates/job.yaml +++ b/charts/spark-history-server/templates/job.yaml @@ -19,7 +19,7 @@ spec: - | set -ex; # enable printing the command before execution (in the sub-shell) mc alias set minio https://{{ .Values.s3.endpoint }} $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY; - mc mb minio/{{ .Values.s3.bucket }} + mc mb -p minio/{{ .Values.s3.bucket }} securityContext: {{- toYaml .Values.securityContext | nindent 10 }} {{- with .Values.volumeMounts }}