Skip to content

Commit

Permalink
Make affinity in charts more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
yannick-roeder committed May 16, 2024
1 parent e9a4ee0 commit 8ec34a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/producer-app-cleanup-job/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ spec:
serviceAccountName: {{ .Values.serviceAccountName }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity: {{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | indent 8 }}
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: {{ template "producer-app-cleanup-job.name" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/producer-app/templates/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | indent 8 }}
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: {{ template "producer-app.name" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/streams-app-cleanup-job/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | indent 8 }}
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: {{ template "streams-app-cleanup-job.name" . }}
Expand Down
4 changes: 2 additions & 2 deletions charts/streams-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ spec:
{{- end }}
{{- if .Values.livenessProbe }}
livenessProbe:
{{- .Values.livenessProbe | toYaml | nindent 12 }}
{{- .Values.livenessProbe | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.readinessProbe }}
readinessProbe:
{{- .Values.readinessProbe | toYaml | nindent 12 }}
{{- .Values.readinessProbe | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.prometheus.jmx.enabled }}
- name: prometheus-jmx-exporter
Expand Down

0 comments on commit 8ec34a3

Please sign in to comment.