Skip to content

Commit

Permalink
Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
supercairos committed Oct 30, 2023
1 parent 4088d4f commit 413e0ba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
23 changes: 13 additions & 10 deletions hacks/values/hydra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,19 @@ janitor:
- ALL
podSecurityContext:
runAsNonRoot: true
extraInitContainers: |
- name: "hello-world"
image: "alpine:latest"
command: ["/bin/sh"]
args: ["-c", "echo hello, world!"]
extraContainers: |
- name: "sidecar"
image: "alpine:latest"
command: ["/bin/sh"]
args: ["-c", "sleep infinity"]

cronjob:
janitor:
extraInitContainers: |
- name: "hello-world"
image: "alpine:latest"
command: ["/bin/sh"]
args: ["-c", "echo hello, world!"]
extraContainers: |
- name: "sidecar"
image: "alpine:latest"
command: ["/bin/sh"]
args: ["-c", "sleep infinity"]
priorityClassName: "system-cluster-critical"

Expand Down
6 changes: 3 additions & 3 deletions helm/charts/hydra/templates/janitor-cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ spec:
mountPath: /etc/config
readOnly: true
{{- if .Values.cronjob.janitor.extraContainers }}
{{- tpl .Values.cronjob.janitor.extraContainers . | nindent 6 }}
{{- tpl .Values.cronjob.janitor.extraContainers . | nindent 14 }}
{{- end }}
{{- if .Values.job.extraInitContainers }}
{{- if .Values.cronjob.janitor.extraInitContainers }}
initContainers:
{{- tpl .Values.job.extraInitContainers . | nindent 8 }}
{{- tpl .Values.cronjob.janitor.extraInitContainers . | nindent 12 }}
{{- end }}
{{- with .Values.cronjob.janitor.nodeSelector }}
nodeSelector:
Expand Down

0 comments on commit 413e0ba

Please sign in to comment.