Skip to content

Commit

Permalink
Expose diagnosticsAddress and insecureDiagnostics through helm chart …
Browse files Browse the repository at this point in the history
…values

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
  • Loading branch information
furkatgofurov7 committed Nov 29, 2023
1 parent c6f1066 commit 5412f2b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ spec:
- /manager
args:
- "--leader-elect"
- "--diagnostics-address=${CAPI_OPERATOR_DIAGNOSTICS_ADDRESS:=:8443}"
- "--insecure-diagnostics=${CAPI_OPERATOR_INSECURE_DIAGNOSTICS:=false}"
image: controller:latest
name: manager
ports:
Expand Down
6 changes: 6 additions & 0 deletions hack/charts/cluster-api-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ spec:
{{- if .Values.healthAddr }}
- --health-addr={{ .Values.healthAddr }}
{{- end }}
{{- if .Values.diagnosticsAddress }}
- --diagnostics-address={{ .Values.diagnosticsAddress }}
{{- end }}
{{- if .Values.insecureDiagnostics }}
- --insecure-diagnostics={{ .Values.insecureDiagnostics }}
{{- end }}
{{- with .Values.leaderElection }}
- --leader-elect={{ .enabled }}
{{- if .leaseDuration }}
Expand Down
2 changes: 2 additions & 0 deletions hack/charts/cluster-api-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ image:
tag: dev
pullPolicy: IfNotPresent
healthAddr: ":8081"
diagnosticsAddress: "8443"
insecureDiagnostics: false
imagePullSecrets: {}
resources:
manager:
Expand Down
1 change: 1 addition & 0 deletions test/e2e/resources/full-chart-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14091,6 +14091,7 @@ spec:
- args:
- --v=2
- --health-addr=:8081
- --diagnostics-address=8443
- --leader-elect=true
command:
- /manager
Expand Down

0 comments on commit 5412f2b

Please sign in to comment.