only run pre-instal job when export is defined (#1667)

This commit is contained in:
Stavros Kois
2023-10-28 21:20:00 +03:00
committed by GitHub
parent 292e6f3db5
commit c5fceed7ca
2 changed files with 5 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ description: High Performance, Kubernetes Native Object Storage
annotations:
title: MinIO
type: application
version: 1.7.18
version: 1.7.19
apiVersion: v2
appVersion: '2023-03-13'
kubeVersion: '>=1.16.0-0'

View File

@@ -1,3 +1,5 @@
{{- if .Values.appVolumeMounts -}}
{{- if hasKey .Values.appVolumeMounts "export" }}
apiVersion: batch/v1
kind: Job
metadata:
@@ -26,3 +28,5 @@ spec:
command: ["chown", "-R", "{{ .Values.runAsUser }}:{{ .Values.runAsGroup }}", "{{ .Values.appVolumeMounts.export.mountPath }}"]
volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
{{- end -}}
{{- end -}}