Skip to content

Commit d2ec307

Browse files
committed
charts: Add in-cluster-context-name config option
1 parent 7aeed4c commit d2ec307

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

charts/headlamp/templates/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,10 @@ spec:
230230
{{- end }}
231231
args:
232232
{{- if .Values.config.inCluster }}
233-
- "-in-cluster"
233+
- --in-cluster
234+
{{- if .Values.config.inClusterContextName }}
235+
- --in-cluster-context-name={{ .Values.config.inClusterContextName | quote }}
236+
{{- end }}
234237
{{- end }}
235238
{{- with .Values.config.enableHelm }}
236239
- "-enable-helm"

charts/headlamp/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ initContainers: []
3030

3131
config:
3232
inCluster: true
33+
inClusterContextName: "main"
3334
# -- base url path at which headlamp should run
3435
baseURL: ""
3536
oidc:

0 commit comments

Comments
 (0)