Files
helm-charts-hardened/charts/spire/charts/spire-server/templates/controller-manager-service.yaml
T
kfox1111 1169dd5692 Update spire-controller-manager to 0.6.2 and add its staticManifest support (#563)
* Update spire-controller-manager to 0.6.2 and add its staticManifest support

Signed-off-by: Kevin Fox <[email protected]>

* Update docs

Signed-off-by: Kevin Fox <[email protected]>

* Fix indent

Signed-off-by: Kevin Fox <[email protected]>

---------

Signed-off-by: Kevin Fox <[email protected]>
2025-04-23 10:56:55 -07:00

27 lines
809 B
YAML

{{- if not .Values.externalServer }}
{{- if eq .Values.controllerManager.staticManifestMode "off" }}
{{- if eq (.Values.controllerManager.enabled | toString) "true" }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "spire-controller-manager.fullname" . }}-webhook
namespace: {{ include "spire-server.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 }}
{{- end }}
{{- end }}