...

Text file src/github.com/linkerd/linkerd2/charts/linkerd-control-plane/templates/config.yaml

Documentation: github.com/linkerd/linkerd2/charts/linkerd-control-plane/templates

     1---
     2kind: ConfigMap
     3apiVersion: v1
     4metadata:
     5  name: linkerd-config
     6  namespace: {{ .Release.Namespace }}
     7  labels:
     8    linkerd.io/control-plane-component: controller
     9    linkerd.io/control-plane-ns: {{.Release.Namespace}}
    10    {{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
    11  annotations:
    12    {{ include "partials.annotations.created-by" . }}
    13data:
    14  linkerd-crds-chart-version: linkerd-crds-1.0.0-edge
    15  values: |
    16  {{- $values := deepCopy .Values }}
    17  {{- /*
    18    WARNING! All sensitive or private data such as TLS keys must be removed
    19    here to avoid it being publicly readable.
    20  */ -}}
    21  {{- if kindIs "map" $values.identity.issuer.tls -}}
    22    {{- $_ := unset $values.identity.issuer.tls "keyPEM"}}
    23  {{- end -}}
    24  {{- if kindIs "map" $values.profileValidator -}}
    25    {{- $_ := unset $values.profileValidator "keyPEM"}}
    26  {{- end -}}
    27  {{- if kindIs "map" $values.proxyInjector -}}
    28    {{- $_ := unset $values.proxyInjector "keyPEM"}}
    29  {{- end -}}
    30  {{- if kindIs "map" $values.policyValidator -}}
    31    {{- $_ := unset $values.policyValidator "keyPEM"}}
    32  {{- end -}}
    33  {{- if (empty $values.identityTrustDomain) -}}
    34  {{- $_ := set $values "identityTrustDomain" $values.clusterDomain}}
    35  {{- end -}}
    36  {{- $_ := unset $values "partials"}}
    37  {{- $_ := unset $values "configs"}}
    38  {{- $_ := unset $values "stage"}}
    39  {{- toYaml $values | trim | nindent 4 }}

View as plain text