Skip to content

Commit

Permalink
make curl image respect global.imageRegistry (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
FieteO authored Dec 1, 2024
1 parent 05e6fa3 commit e2dc664
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/jaeger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.53.0
description: A Jaeger Helm chart for Kubernetes
name: jaeger
type: application
version: 3.3.2
version: 3.3.3
# CronJobs require v1.21
kubeVersion: ">= 1.21-0"
keywords:
Expand Down
12 changes: 12 additions & 0 deletions charts/jaeger/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,18 @@ Create image name for hotrod image
{{- include "renderImage" ( dict "imageRoot" .Values.hotrod.image "context" $ ) -}}
{{- end -}}

{{/*
Define curl image declaration
*/}}
{{- define "curl.image" -}}
{{- $image := "curlimages/curl" -}}
{{- if .Values.global.imageRegistry -}}
{{ .Values.global.imageRegistry }}/{{ $image }}
{{- else -}}
{{ $image }}
{{- end -}}
{{- end -}}

{{/*
Create pull secrets for hotrod image
*/}}
Expand Down
2 changes: 1 addition & 1 deletion charts/jaeger/templates/collector-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
{{- if .Values.provisionDataStore.elasticsearch }}
initContainers:
- name: elasticsearch-checker
image: curlimages/curl
image: {{ include "curl.image" . }}
command:
- sh
- "-c"
Expand Down
2 changes: 1 addition & 1 deletion charts/jaeger/templates/query-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
{{- end }}
{{- if .Values.provisionDataStore.elasticsearch }}
- name: elasticsearch-checker
image: curlimages/curl
image: {{ include "curl.image" . }}
command:
- sh
- "-c"
Expand Down

0 comments on commit e2dc664

Please sign in to comment.