Add tolerations to spire-server hook pods (#742)
Applies the tolerations in the spire-server chart to the pods created by the hooks. Previously they were only applied to the pods of the server itself. Signed-off-by: Alec Wilson <[email protected]>
This commit is contained in:
@@ -58,6 +58,10 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "spire-server.fullname" . }}-post-install
|
name: {{ include "spire-server.fullname" . }}-post-install
|
||||||
spec:
|
spec:
|
||||||
|
{{- with .Values.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
serviceAccountName: {{ include "spire-server.serviceAccountName" . }}-post-install
|
serviceAccountName: {{ include "spire-server.serviceAccountName" . }}-post-install
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "spire-server.fullname" . }}-post-upgrade
|
name: {{ include "spire-server.fullname" . }}-post-upgrade
|
||||||
spec:
|
spec:
|
||||||
|
{{- with .Values.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
serviceAccountName: {{ include "spire-server.serviceAccountName" . }}-post-upgrade
|
serviceAccountName: {{ include "spire-server.serviceAccountName" . }}-post-upgrade
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "spire-server.fullname" . }}-pre-delete
|
name: {{ include "spire-server.fullname" . }}-pre-delete
|
||||||
spec:
|
spec:
|
||||||
|
{{- with .Values.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
serviceAccountName: {{ include "spire-server.serviceAccountName" . }}-pre-delete
|
serviceAccountName: {{ include "spire-server.serviceAccountName" . }}-pre-delete
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "spire-server.fullname" . }}-pre-upgrade
|
name: {{ include "spire-server.fullname" . }}-pre-upgrade
|
||||||
spec:
|
spec:
|
||||||
|
{{- with .Values.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
serviceAccountName: {{ include "spire-server.serviceAccountName" . }}-pre-upgrade
|
serviceAccountName: {{ include "spire-server.serviceAccountName" . }}-pre-upgrade
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
Reference in New Issue
Block a user