Skip to content

Commit

Permalink
chore: templatize server tag job image (#131)
Browse files Browse the repository at this point in the history
* chore: templatize server tag job image

* trigger build

* fix helm issue
  • Loading branch information
ravisingal authored Nov 7, 2023
1 parent b3be47b commit 0625595
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions helm/templates/server/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
{{- end }}
annotations: {{ toYaml $tier.podAnnotations | nindent 8 }}
spec:
{{- with .Values.initContainers }}
{{- with $.Values.initContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -86,7 +86,7 @@ spec:
containerPort: {{ $tier.jmx.port }}
protocol: TCP
{{- end }}
{{- with .Values.extraEnvs }}
{{- with $.Values.extraEnvs }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
Expand All @@ -101,7 +101,7 @@ spec:
- name: gcs-iam-secret
mountPath: "/account"
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- with $.Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if $tier.livenessProbe.enabled }}
Expand Down Expand Up @@ -173,7 +173,7 @@ spec:
secret:
secretName: {{ $.Values.cluster.storage.gs.secretName }}
{{- end }}
{{- with .Values.extraVolumes }}
{{- with $.Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if $.Values.imagePullSecrets }}
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/server/tags-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
serviceAccountName: {{ include "pinot.server.serviceAccountName" . }}
containers:
- name: {{ include "pinot.server.fullname" . }}-tags
image: curlimages/curl:latest
image: {{ .Values.server.tagJob.image.repository }}:{{ .Values.server.tagJob.image.tag }}
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c"]
args:
Expand Down
4 changes: 4 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,10 @@ server:

tagJobEnabled: false
tagJobWaitforSideCar: true
tagJob:
image:
repository: curlimages/curl
tag: latest

servicemanager:
name: servicemanager
Expand Down

0 comments on commit 0625595

Please sign in to comment.