Skip to content

Commit

Permalink
fix: imagePullSecrets and container args (#12)
Browse files Browse the repository at this point in the history
Update deployment.yaml to fix `imagePullSecrets` and container `args`.


![image](https://github.com/metalbear-co/charts/assets/3672489/1b9f73e4-021b-4888-be81-8ea262596477)
  • Loading branch information
funkswing authored Nov 28, 2023
1 parent 29b4991 commit 0d2d52f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions mirrord-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ spec:
app: mirrord-operator
spec:
{{- if .Values.operator.imagePullSecrets }}
{{- toYaml .Values.operator.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.operator.imagePullSecrets }}
- {{ toYaml . }}
{{- end }}
{{- end }}
containers:
- env:
Expand All @@ -34,17 +37,20 @@ spec:
envFrom:
- secretRef:
name: {{ .Values.license.file.secret }}
{{ else if .Values.license.keyRef }}
{{- else if .Values.license.keyRef }}
envFrom:
- secretRef:
name: {{ .Values.license.keyRef }}
{{ else }}
{{- else }}
{{ required "Either keyRef, file or key value is required for license!" }}
{{- end }}
image: {{ .Values.operator.image }}:{{ .Chart.AppVersion }}
imagePullPolicy: IfNotPresent
{{- if .Values.operator.containerArgs }}
{{- toYaml .Values.operator.containerArgs }}
args:
{{- range .Values.operator.containerArgs }}
- {{ toYaml . }}
{{- end }}
{{- end }}
livenessProbe:
httpGet:
Expand Down

0 comments on commit 0d2d52f

Please sign in to comment.