Add option to enable federation on spire-server (#97)

This commit is contained in:
Pete Cable
2023-03-16 20:36:13 +01:00
committed by GitHub
parent 382c1f4334
commit 811a2f6b01
7 changed files with 46 additions and 0 deletions
@@ -17,4 +17,12 @@ spec:
args: ['-zvw3', '{{ include "spire-server.fullname" . }}', '{{ .Values.service.port }}']
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
{{- if eq (.Values.federation.enabled | toString) "true" }}
- name: wget-federation-bundle-endpoint
image: busybox
command: ['wget']
args: ['--no-check-certificate', '-O', '/dev/null', 'https://{{ include "spire-server.fullname" . }}.{{ include "spire-server.namespace" . }}.svc.cluster.local:{{ .Values.federation.bundleEndpoint.port }}']
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
{{- end }}
restartPolicy: Never