Skip to content

Commit e6be205

Browse files
committed
charts: values: deployment: Add session-ttl flag
1 parent 46d53d3 commit e6be205

27 files changed

+35
-0
lines changed

charts/headlamp/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ $ helm install my-headlamp headlamp/headlamp \
7171
|--------------------|--------|-----------------------|---------------------------------------------------------------------------|
7272
| config.inCluster | bool | `true` | Run Headlamp in-cluster |
7373
| config.baseURL | string | `""` | Base URL path for Headlamp UI |
74+
| config.sessionTTL | int | `86400` | The time in seconds for the internal session to remain valid (default 24h) |
7475
| config.pluginsDir | string | `"/headlamp/plugins"` | Directory to load Headlamp plugins from |
7576
| config.enableHelm | bool | `false` | Enable Helm operations like install, upgrade and uninstall of Helm charts |
7677
| config.extraArgs | array | `[]` | Additional arguments for Headlamp server |

charts/headlamp/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ spec:
245245
{{- with .Values.config.pluginsDir}}
246246
- "-plugins-dir={{ . }}"
247247
{{- end }}
248+
{{- if hasKey .Values.config "sessionTTL" }}
249+
- "-session-ttl={{ .Values.config.sessionTTL }}"
250+
{{- end }}
248251
{{- if not $oidc.externalSecret.enabled}}
249252
# Check if externalSecret is disabled
250253
{{- if or (ne $oidc.clientID "") (ne $clientID "") }}

charts/headlamp/tests/expected_templates/azure-oidc-with-validators.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ spec:
115115
- "-in-cluster"
116116
- "-in-cluster-context-name=main"
117117
- "-plugins-dir=/headlamp/plugins"
118+
- "-session-ttl=86400"
118119
# Check if externalSecret is disabled
119120
# Check if clientID is non empty either from env or oidc.config
120121
- "-oidc-client-id=$(OIDC_CLIENT_ID)"

charts/headlamp/tests/expected_templates/default.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ spec:
112112
- "-in-cluster"
113113
- "-in-cluster-context-name=main"
114114
- "-plugins-dir=/headlamp/plugins"
115+
- "-session-ttl=86400"
115116
# Check if externalSecret is disabled
116117
ports:
117118
- name: http

charts/headlamp/tests/expected_templates/extra-args.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ spec:
112112
- "-in-cluster"
113113
- "-in-cluster-context-name=main"
114114
- "-plugins-dir=/headlamp/plugins"
115+
- "-session-ttl=86400"
115116
# Check if externalSecret is disabled
116117
- -insecure-ssl
117118
ports:

charts/headlamp/tests/expected_templates/extra-manifests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ spec:
129129
- "-in-cluster"
130130
- "-in-cluster-context-name=main"
131131
- "-plugins-dir=/headlamp/plugins"
132+
- "-session-ttl=86400"
132133
# Check if externalSecret is disabled
133134
ports:
134135
- name: http

charts/headlamp/tests/expected_templates/host-users-override.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ spec:
112112
- "-in-cluster"
113113
- "-in-cluster-context-name=main"
114114
- "-plugins-dir=/headlamp/plugins"
115+
- "-session-ttl=86400"
115116
# Check if externalSecret is disabled
116117
ports:
117118
- name: http

charts/headlamp/tests/expected_templates/httproute-enabled.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ spec:
112112
- "-in-cluster"
113113
- "-in-cluster-context-name=main"
114114
- "-plugins-dir=/headlamp/plugins"
115+
- "-session-ttl=86400"
115116
# Check if externalSecret is disabled
116117
ports:
117118
- name: http

charts/headlamp/tests/expected_templates/me-user-info-url-directly.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ spec:
114114
- "-in-cluster"
115115
- "-in-cluster-context-name=main"
116116
- "-plugins-dir=/headlamp/plugins"
117+
- "-session-ttl=86400"
117118
# Check if externalSecret is disabled
118119
- "-me-user-info-url=$(ME_USER_INFO_URL)"
119120
ports:

charts/headlamp/tests/expected_templates/me-user-info-url.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ spec:
118118
- "-in-cluster"
119119
- "-in-cluster-context-name=main"
120120
- "-plugins-dir=/headlamp/plugins"
121+
- "-session-ttl=86400"
121122
# Check if externalSecret is disabled
122123
- "-me-user-info-url=$(ME_USER_INFO_URL)"
123124
ports:

0 commit comments

Comments
 (0)