diff --git a/charts/base-otc/templates/hooks/pre-install.yaml b/charts/base-otc/templates/hooks/pre-install.yaml index fed030b..3004b40 100644 --- a/charts/base-otc/templates/hooks/pre-install.yaml +++ b/charts/base-otc/templates/hooks/pre-install.yaml @@ -1,8 +1,8 @@ -{{- if .Values.pre-job.enable }} +{{- if .Values.pre_job.enable }} apiVersion: batch/v1 kind: Job metadata: - name: "pre-job" + name: "pre_job" labels: {{- include "base-otc.labels" . | nindent 4 }} annotations: @@ -11,7 +11,7 @@ metadata: spec: template: metadata: - name: "pre-job" + name: "pre_job" labels: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} @@ -22,11 +22,11 @@ spec: {{- end }} restartPolicy: Never containers: - - name: "pre-job-container" - image: "{{ .Values.pre-job.image }}" + - name: "pre_job-container" + image: "{{ .Values.pre_job.image }}" env: - {{- if .Values.pre-job.env }} - {{- range $key, $value := .Values.pre-job.env }} + {{- if .Values.pre_job.env }} + {{- range $key, $value := .Values.pre_job.env }} - name: {{ $key | quote }} value: {{ $value | quote }} {{- end }} diff --git a/charts/base-otc/values.yaml b/charts/base-otc/values.yaml index cea2b34..20059c5 100644 --- a/charts/base-otc/values.yaml +++ b/charts/base-otc/values.yaml @@ -9,6 +9,9 @@ image: # repository: nginx pullPolicy: IfNotPresent +pre_job: + enable: false + imagePullSecrets: [] nameOverride: "" fullnameOverride: ""