Skip to content

Commit

Permalink
fix: place volumes: inside the if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
espados committed Dec 19, 2024
1 parent 7f580c8 commit 9e061ed
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
{{- if .Values.extraVolumes }}
volumes:
{{ toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
{{- if .Values.extraVolumes }}
volumes:
{{ toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/airbyte-keycloak/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 8 }}
{{- end }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 10 }}
volumes:
{{- if .Values.extraVolumes }}
volumes:
{{ toYaml .Values.extraVolumes | nindent 8 }}
{{- end }}
volumeClaimTemplates:
Expand Down
2 changes: 1 addition & 1 deletion charts/airbyte-metrics/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
{{- if .Values.extraVolumes }}
volumes:
{{ toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/airbyte-temporal-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
{{- if .Values.extraVolumes }}
volumes:
{{ toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/airbyte-webapp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,12 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if or .Values.extraVolumes .Values.global.extraVolumes }}
volumes:
{{- if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
{{- if .Values.global.extraVolumes }}
{{ toYaml .Values.global.extraVolumes | nindent 6 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.connectorBuilderServer.podSecurityContext | nindent 8 }}
volumes:
{{- if .Values.connectorBuilderServer.extraVolumes }}
volumes:
{{ toYaml .Values.connectorBuilderServer.extraVolumes | nindent 6 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.connectorRolloutWorker.podSecurityContext | nindent 6 }}
volumes:
{{- if .Values.connectorRolloutWorker.extraVolumes }}
volumes:
{{ toYaml .Values.connectorRolloutWorker.extraVolumes | nindent 4 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 8 }}
{{- end }}
securityContext: {{- toYaml .Values.keycloak.podSecurityContext | nindent 10 }}
volumes:
{{- if .Values.keycloak.extraVolumes }}
volumes:
{{ toYaml .Values.keycloak.extraVolumes | nindent 8 }}
{{- end }}
volumeClaimTemplates:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.metrics.podSecurityContext | nindent 8 }}
volumes:
{{- if .Values.metrics.extraVolumes }}
volumes:
{{ toYaml .Values.metrics.extraVolumes | nindent 6 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 8 }}
{{- end }}
securityContext: {{- toYaml .Values.temporalUi.podSecurityContext | nindent 8 }}
volumes:
{{- if .Values.temporalUi.extraVolumes }}
volumes:
{{ toYaml .Values.temporalUi.extraVolumes | nindent 8 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/v2/airbyte/templates/airbyte-webapp/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@ spec:
{{ toYaml .Values.global.extraContainers | nindent 6 }}
{{- end }}
securityContext: {{- toYaml .Values.webapp.podSecurityContext | nindent 8 }}
{{- if or .Values.webapp.extraVolumes .Values.global.extraVolumes }}
volumes:
{{- if .Values.webapp.extraVolumes }}
{{ toYaml .Values.webapp.extraVolumes | nindent 6 }}
{{- end }}
{{- if .Values.global.extraVolumes }}
{{ toYaml .Values.global.extraVolumes | nindent 6 }}
{{- end }}
{{- end }}

0 comments on commit 9e061ed

Please sign in to comment.