helm: Add experimentalArgs to destination and policy controllers (#11862)

When debugging controller behavior, it may desirable to run a controller
with additional command-line flags that aren't explicitly referenced in
our values.yaml.

This change adds support for undocumented experimentalArgs values that
can be set on the policyController and destinationController parent
scopes.
This commit is contained in:
Oliver Gould 2024-01-04 02:36:44 -08:00 committed by GitHub
parent 4ce133b07d
commit 7cb0e3645a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -205,6 +205,9 @@ spec:
- -identity-trust-domain={{.Values.identityTrustDomain | default .Values.clusterDomain}}
- -default-opaque-ports={{.Values.proxy.opaquePorts}}
- -enable-pprof={{.Values.enablePprof | default false}}
{{- range (.Values.destinationController).experimentalArgs }}
- {{ . }}
{{- end }}
{{- include "partials.linkerd.trace" . | nindent 8 -}}
image: {{.Values.controllerImage}}:{{.Values.controllerImageVersion | default .Values.linkerdVersion}}
imagePullPolicy: {{.Values.imagePullPolicy}}
@ -294,6 +297,9 @@ spec:
{{- if .Values.policyController.probeNetworks }}
- --probe-networks={{.Values.policyController.probeNetworks | join ","}}
{{- end}}
{{- range .Values.policyController.experimentalArgs }}
- {{ . }}
{{- end }}
image: {{.Values.policyController.image.name}}:{{.Values.policyController.image.version | default .Values.linkerdVersion}}
imagePullPolicy: {{.Values.policyController.image.pullPolicy | default .Values.imagePullPolicy}}
livenessProbe: