Skip to content

Commit

Permalink
Update helpers functions in subcharts (#18757)
Browse files Browse the repository at this point in the history
* Update helpers functions in subcharts; Refactor component.imageTag function call

* fix typo in _helpers.tpl
  • Loading branch information
xpuska513 authored Nov 1, 2022
1 parent 5ce7ffd commit 04d84ce
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions charts/airbyte-bootloader/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ Define imageTag
*/}}

{{- define "bootloader.imageTag" -}}
{{- if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else if .Values.image.tag }}
{{- if .Values.image.tag }}
{{- printf "%s" .Values.image.tag }}
{{- else if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else }}
{{- printf "%s" .Chart.AppVersion }}
{{- end }}
Expand Down
6 changes: 3 additions & 3 deletions charts/airbyte-cron/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Define imageTag
*/}}

{{- define "cron.imageTag" -}}
{{- if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else if .Values.image.tag }}
{{- if .Values.image.tag }}
{{- printf "%s" .Values.image.tag }}
{{- else if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else }}
{{- printf "%s" .Chart.AppVersion }}
{{- end }}
Expand Down
6 changes: 3 additions & 3 deletions charts/airbyte-metrics/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Define imageTag
*/}}

{{- define "metrics.imageTag" -}}
{{- if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else if .Values.image.tag }}
{{- if .Values.image.tag }}
{{- printf "%s" .Values.image.tag }}
{{- else if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else }}
{{- printf "%s" .Chart.AppVersion }}
{{- end }}
Expand Down
6 changes: 3 additions & 3 deletions charts/airbyte-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Define imageTag
*/}}

{{- define "server.imageTag" -}}
{{- if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else if .Values.image.tag }}
{{- if .Values.image.tag }}
{{- printf "%s" .Values.image.tag }}
{{- else if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else }}
{{- printf "%s" .Chart.AppVersion }}
{{- end }}
Expand Down
6 changes: 3 additions & 3 deletions charts/airbyte-webapp/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ Define imageTag
*/}}

{{- define "webapp.imageTag" -}}
{{- if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else if .Values.image.tag }}
{{- if .Values.image.tag }}
{{- printf "%s" .Values.image.tag }}
{{- else if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else }}
{{- printf "%s" .Chart.AppVersion }}
{{- end }}
Expand Down
6 changes: 3 additions & 3 deletions charts/airbyte-worker/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ Define imageTag
*/}}

{{- define "worker.imageTag" -}}
{{- if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else if .Values.image.tag }}
{{- if .Values.image.tag }}
{{- printf "%s" .Values.image.tag }}
{{- else if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else }}
{{- printf "%s" .Chart.AppVersion }}
{{- end }}
Expand Down

0 comments on commit 04d84ce

Please sign in to comment.