Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ spec:
- name: "{{ template "pulsar.fullname" . }}-jwt-secret-init"
image: "{{ .Values.images.toolset.repository }}:{{ .Values.images.toolset.tag }}"
imagePullPolicy: {{ .Values.images.toolset.pullPolicy }}
{{- if .Values.toolset.securityContext }}
securityContext: {{- toYaml .Values.toolset.securityContext | nindent 10 }}
{{- if .Values.toolset.containerSecurityContext }}
securityContext: {{- toYaml .Values.toolset.containerSecurityContext | nindent 10 }}
{{- end }}
command: ["bash", "-c"]
args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ spec:
resources:
{{ toYaml .Values.toolset.resources | indent 10 }}
{{- end }}
{{- if .Values.toolset.containerSecurityContext }}
securityContext: {{- toYaml .Values.toolset.containerSecurityContext | nindent 10 }}
{{- end }}
command: ["sh", "-c"]
args:
- >
Expand Down
4 changes: 4 additions & 0 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1819,6 +1819,10 @@ toolset:
runAsUser: 10000
runAsGroup: 10000
fsGroup: 10000
containerSecurityContext:
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
serviceAccount:
# Specifies whether to use a service account to run this component
use: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ spec:
- name: "{{ template "pulsar.fullname" . }}-jwt-secret-init"
image: "{{ .Values.images.toolset.repository }}:{{ .Values.images.toolset.tag }}"
imagePullPolicy: {{ .Values.images.toolset.pullPolicy }}
{{- if .Values.toolset.securityContext }}
securityContext: {{- toYaml .Values.toolset.securityContext | nindent 10 }}
{{- if .Values.toolset.containerSecurityContext }}
securityContext: {{- toYaml .Values.toolset.containerSecurityContext | nindent 10 }}
{{- end }}
command: ["bash", "-c"]
args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ spec:
resources:
{{ toYaml .Values.toolset.resources | indent 10 }}
{{- end }}
{{- if .Values.toolset.containerSecurityContext }}
securityContext: {{- toYaml .Values.toolset.containerSecurityContext | nindent 10 }}
{{- end }}
command: ["sh", "-c"]
args:
- >
Expand Down
4 changes: 4 additions & 0 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1899,6 +1899,10 @@ toolset:
runAsUser: 10000
runAsGroup: 10000
fsGroup: 10000
containerSecurityContext:
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
serviceAccount:
# Specifies whether to use a service account to run this component
use: true
Expand Down
Loading