Skip to content

Commit 0ce9d97

Browse files
Expose diagnosticsAddress and insecureDiagnostics through helm chart values
Signed-off-by: Furkat Gofurov <[email protected]>
1 parent b7b178c commit 0ce9d97

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

config/manager/manager.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ spec:
2020
- /manager
2121
args:
2222
- "--leader-elect"
23-
- "--diagnostics-address=${CAPI_OPERATOR_DIAGNOSTICS_ADDRESS:=:8443}"
24-
- "--insecure-diagnostics=${CAPI_OPERATOR_INSECURE_DIAGNOSTICS:=false}"
2523
image: controller:latest
2624
name: manager
2725
ports:

hack/charts/cluster-api-operator/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ spec:
6363
{{- if .Values.healthAddr }}
6464
- --health-addr={{ .Values.healthAddr }}
6565
{{- end }}
66+
{{- if .Values.diagnosticsAddress }}
67+
- --diagnostics-address={{ .Values.diagnosticsAddress }}
68+
{{- end }}
69+
{{- if .Values.insecureDiagnostics }}
70+
- --insecure-diagnostics={{ .Values.insecureDiagnostics }}
71+
{{- end }}
6672
{{- with .Values.leaderElection }}
6773
- --leader-elect={{ .enabled }}
6874
{{- if .leaseDuration }}

hack/charts/cluster-api-operator/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ image:
2727
tag: dev
2828
pullPolicy: IfNotPresent
2929
healthAddr: ":8081"
30+
diagnosticsAddress: "8443"
31+
insecureDiagnostics: false
3032
imagePullSecrets: {}
3133
resources:
3234
manager:

test/e2e/resources/full-chart-install.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14091,6 +14091,7 @@ spec:
1409114091
- args:
1409214092
- --v=2
1409314093
- --health-addr=:8081
14094+
- --diagnostics-address=8443
1409414095
- --leader-elect=true
1409514096
command:
1409614097
- /manager

0 commit comments

Comments
 (0)