This patch adds the start of a library to help reduce code duplication. It will be split out to its own library chart at the same time the other charts are split out. --------- Signed-off-by: Kevin Fox <[email protected]>
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
{{- if eq (.Values.controllerManager.enabled | toString) "true" }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "spire-controller-manager.fullname" . }}
|
|
namespace: {{ include "spire-server.namespace" . }}
|
|
data:
|
|
controller-manager-config.yaml: |
|
|
apiVersion: spire.spiffe.io/v1alpha1
|
|
kind: ControllerManagerConfig
|
|
metadata:
|
|
name: {{ include "spire-controller-manager.fullname" . }}
|
|
namespace: {{ include "spire-server.namespace" . }}
|
|
labels:
|
|
{{- include "spire-server.labels" . | nindent 8 }}
|
|
metrics:
|
|
bindAddress: 0.0.0.0:8082
|
|
health:
|
|
healthProbeBindAddress: 0.0.0.0:8083
|
|
leaderElection:
|
|
leaderElect: true
|
|
resourceName: {{ .Release.Name | sha256sum | trunc 8 }}.spiffe.io
|
|
resourceNamespace: {{ include "spire-server.namespace" . }}
|
|
validatingWebhookConfigurationName: {{ include "spire-controller-manager.fullname" . }}-webhook
|
|
clusterName: {{ include "spire-lib.cluster-name" . }}
|
|
trustDomain: {{ include "spire-lib.trust-domain" . }}
|
|
ignoreNamespaces:
|
|
{{- with .Values.controllerManager.ignoreNamespaces }}
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
spireServerSocketPath: "/tmp/spire-server/private/api.sock"
|
|
{{- end }}
|