mirror of
https://github.com/truenas/charts.git
synced 2026-02-10 22:06:15 +08:00
only run pre-instal job when export is defined (#1667)
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user