Commit deb6b067 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

add imagePullSecrets and podSecurityContext to Job and CronJob

parent 306fea9d
......@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.1
version: 0.2.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
......
......@@ -16,6 +16,16 @@ spec:
spec:
template:
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- with .Values.imagePullSecrets }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.podSecurityContext }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "shibboleth-sp.sealerKeys.serviceAccountName" . }}
containers:
- name: rotate-sealer-keys
......
......@@ -20,6 +20,16 @@ spec:
labels:
{{- include "shibboleth-sp.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- with .Values.imagePullSecrets }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.podSecurityContext }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "shibboleth-sp.sealerKeys.serviceAccountName" . }}
containers:
- name: create-sealer-keys
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment