Skip to content

Commit

Permalink
Helm: add missing imagePullPolicy (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mucles authored Feb 28, 2022
1 parent 168eed4 commit 9116a74
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ spec:
containers:
- name: migrator
image: {{ include "sourcegraph.image" (list . "migrator") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
args: {{- default (list "up") .Values.migrator.args | toYaml | nindent 8 }}
env:
{{- range $name, $item := .Values.migrator.env }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
initContainers:
- name: correct-data-dir-permissions
image: {{ include "sourcegraph.image" (list . "alpine") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
command: ["sh", "-c", "if [ -d /data/pgdata-12 ]; then chmod 750 /data/pgdata-12; fi"]
volumeMounts:
- mountPath: /data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
{{- if .Values.migrator.enabled }}
- name: migrator
image: {{ include "sourcegraph.image" (list . "migrator") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
args: {{- default (list "up") .Values.migrator.args | toYaml | nindent 8 }}
env:
{{- range $name, $item := .Values.frontend.env }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
containers:
- name: grafana
image: {{ include "sourcegraph.image" (list . "grafana") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
{{- with .Values.grafana.args }}
args:
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
containers:
- name: zoekt-webserver
image: {{ include "sourcegraph.image" (list . "indexedSearch") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
{{- with .Values.indexedSearch.args }}
args:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -77,6 +78,7 @@ spec:
{{- end }}
- name: zoekt-indexserver
image: {{ include "sourcegraph.image" (list . "indexedSearchIndexer") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
terminationMessagePolicy: FallbackToLogsOnError
env:
{{- range $name, $item := .Values.indexedSearchIndexer.env}}
Expand Down
1 change: 1 addition & 0 deletions charts/sourcegraph/templates/jaeger/jaeger.Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ spec:
containers:
- name: jaeger
image: {{ include "sourcegraph.image" (list . "tracing") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
args: {{- default (list "--memory.max-traces=20000") .Values.tracing.args | toYaml | nindent 8 }}
env:
{{- range $name, $item := .Values.tracing.env}}
Expand Down
1 change: 1 addition & 0 deletions charts/sourcegraph/templates/pgsql/pgsql.Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
initContainers:
- name: correct-data-dir-permissions
image: {{ include "sourcegraph.image" (list . "alpine") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
command: ["sh", "-c", "if [ -d /data/pgdata-12 ]; then chmod 750 /data/pgdata-12; fi"]
volumeMounts:
- mountPath: /data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
containers:
- name: prometheus
image: {{ include "sourcegraph.image" (list . "prometheus") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
{{- with .Values.prometheus.args }}
args:
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
containers:
- name: redis-cache
image: {{ include "sourcegraph.image" (list . "redisCache") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
{{- with .Values.redisCache.args }}
args:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -81,6 +82,7 @@ spec:
{{- end }}
- name: redis-exporter
image: {{ include "sourcegraph.image" (list . "redisExporter") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
terminationMessagePolicy: FallbackToLogsOnError
env:
{{- range $name, $item := .Values.redisExporter.env}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
containers:
- name: redis-store
image: {{ include "sourcegraph.image" (list . "redisStore") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
{{- with .Values.redisStore.args }}
args:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -81,6 +82,7 @@ spec:
{{- end }}
- name: redis-exporter
image: {{ include "sourcegraph.image" (list . "redisExporter") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
terminationMessagePolicy: FallbackToLogsOnError
env:
{{- range $name, $item := .Values.redisExporter.env}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
containers:
- name: repo-updater
image: {{ include "sourcegraph.image" (list . "repoUpdater") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
{{- with .Values.repoUpdater.args }}
args:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 9116a74

Please sign in to comment.