Skip to content

Commit

Permalink
Fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-cr-13 committed May 28, 2024
1 parent b18279c commit fb4284e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 7 additions & 7 deletions charts/base-otc/templates/hooks/pre-install.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/base-otc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ image:
# repository: nginx
pullPolicy: IfNotPresent

pre_job:
enable: false

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit fb4284e

Please sign in to comment.