Skip to content

Commit

Permalink
Add security context in migration job and fix image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibinger committed Oct 31, 2024
1 parent a9b08a6 commit 366895e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions charts/blockscout-stack/templates/blockscout-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ spec:
- name: {{ .Chart.Name }}-blockscout
securityContext:
{{- toYaml .Values.blockscout.securityContext | nindent 12 }}
{{- if .Values.blockscout.separateApi.enabled }}
image: "{{ .Values.blockscout.image.repository }}:{{ .Values.blockscout.image.tag }}-api"
{{- else }}
image: "{{ .Values.blockscout.image.repository }}:{{ .Values.blockscout.image.tag }}"
{{- end }}
resources:
{{- if .Values.blockscout.separateApi.enabled }}
{{- toYaml .Values.blockscout.separateApi.resources | nindent 12 }}
Expand Down Expand Up @@ -258,7 +254,7 @@ spec:
- name: {{ .Chart.Name }}-blockscout
securityContext:
{{- toYaml .Values.blockscout.securityContext | nindent 12 }}
image: "{{ .Values.blockscout.image.repository }}:{{ .Values.blockscout.image.tag }}-indexer"
image: "{{ .Values.blockscout.image.repository }}:{{ .Values.blockscout.image.tag }}"
resources:
{{- toYaml .Values.blockscout.resources | nindent 12 }}
imagePullPolicy: {{ .Values.blockscout.image.pullPolicy }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
spec:
containers:
- name: blockscout-migrations
securityContext:
{{- toYaml .Values.blockscout.securityContext | nindent 12 }}
image: "{{ .Values.blockscout.image.repository }}:{{ .Values.blockscout.image.tag }}"
imagePullPolicy: {{ .Values.blockscout.image.pullPolicy }}
{{- with .Values.blockscout.init.command }}
Expand Down

0 comments on commit 366895e

Please sign in to comment.