Add support for spire-controller-manager

Signed-off-by: Marco Franssen <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-02-18 13:04:13 +01:00
committed by Marco Franssen
parent 977468bc6a
commit 0d49280cda
13 changed files with 634 additions and 4 deletions
@@ -0,0 +1,22 @@
{{- if eq (.Values.controllerManager.enabled | toString) "true" }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "spire-controller-manager.fullname" . }}-webhook
namespace: {{ .Release.Namespace }}
labels:
{{- include "spire-server.labels" . | nindent 4 }}
{{- with .Values.controllerManager.service.annotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
type: {{ .Values.controllerManager.service.type }}
ports:
- name: https
port: {{ .Values.controllerManager.service.port }}
targetPort: https
protocol: TCP
selector:
{{- include "spire-server.selectorLabels" . | nindent 4 }}
{{- end }}