You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a138874
Browse filesBrowse the repository at this point in the historyBrowse files
`storageClass.preflight.enabled=true`checks gateway storage on fresh StatefulSet
171
+
installs with no gateway class set. The Helm identity needs cluster-scoped
172
+
`list storageclasses`permission. A denied lookup stops Helm rendering. If
173
+
that permission is unavailable, set `server.dataStorageClass` explicitly or
174
+
disable the preflight. If a reinstall reuses retained gateway PVCs, set
175
+
`storageClass.preflight.enabled=false`. Preview with `helm template --dry-run=server`.
176
+
166
177
## Install on Kubernetes
167
178
168
179
```shell
@@ -807,6 +818,7 @@ for peer identity policies, multi-node registrations, and authorization.
807
818
| serviceAccount.annotations | object | `{}` | Annotations to add to the generated service account. |
808
819
| serviceAccount.create | bool | `true` | Create a service account for the gateway. |
809
820
| serviceAccount.name | string | `""` | Existing service account name to use when serviceAccount.create is false. |
821
+
| storageClass.preflight.enabled | bool | `false` | On a fresh StatefulSet install with no server.dataStorageClass, check for a default StorageClass. The Helm identity must be allowed to list StorageClasses. |
810
822
| supervisor.affinity | object | `{}` | Affinity rules for the shared supervisor pod, rendered only when gatewayConfig selects supervisor_topology = "gateway". Top-level affinity applies only to the gateway pod. |
811
823
| supervisor.autoscaling.behavior | object | `{"scaleDown":{"policies":[{"periodSeconds":120,"type":"Pods","value":1}],"stabilizationWindowSeconds":300}}` | HPA scaling behavior. Remove at most one member every two minutes, after a five-minute stabilization window, to allow ownership handoff. |
812
824
| supervisor.autoscaling.enabled | bool | `false` | Enable memory-based autoscaling of the shared supervisor Deployment. Requires supervisor_topology = "gateway" and the Kubernetes resource metrics API (usually Metrics Server). When enabled, the HPA owns the replica count and supervisor.replicas is ignored. |
{{- if or (eq (get $annotations "storageclass.kubernetes.io/is-default-class") "true") (eq (get $annotations "storageclass.beta.kubernetes.io/is-default-class") "true") }}
15
+
{{- $hasDefault = true }}
16
+
{{- end }}
17
+
{{- end }}
18
+
{{- if not $hasDefault }}
19
+
{{- fail "The cluster has no default StorageClass. Set server.dataStorageClass for the gateway openshell-data PVC. If you are reusing retained gateway PVCs or managing the backing storage yourself, set storageClass.preflight.enabled=false." }}
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+
# SPDX-License-Identifier: Apache-2.0
3
+
4
+
suite: StorageClass preflight
5
+
templates:
6
+
- templates/storage-class-preflight.yaml
7
+
set:
8
+
agentSandbox.preflight.enabled: false
9
+
storageClass.preflight.enabled: true
10
+
kubernetesProvider:
11
+
scheme:
12
+
storage.k8s.io/v1/StorageClass:
13
+
gvr:
14
+
group: storage.k8s.io
15
+
version: v1
16
+
resource: storageclasses
17
+
namespaced: false
18
+
objects:
19
+
- apiVersion: storage.k8s.io/v1
20
+
kind: StorageClass
21
+
metadata:
22
+
name: fast-ssd
23
+
24
+
tests:
25
+
- it: explains the gateway class setting and retained PVC opt-out when no default exists
26
+
asserts:
27
+
- failedTemplate:
28
+
errorPattern: 'The cluster has no default StorageClass\. Set server\.dataStorageClass.*reusing retained gateway PVCs.*storageClass\.preflight\.enabled=false'
29
+
30
+
- it: skips the check for a gateway Deployment
31
+
set:
32
+
workload.kind: deployment
33
+
server.externalDbSecret: postgres
34
+
asserts:
35
+
- hasDocuments:
36
+
count: 0
37
+
38
+
- it: accepts an explicit gateway class
39
+
set:
40
+
server.dataStorageClass: fast-ssd
41
+
asserts:
42
+
- hasDocuments:
43
+
count: 0
44
+
45
+
- it: skips the check on an upgrade without a default class
Copy file name to clipboardExpand all lines: deploy/helm/openshell/values.yaml
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -326,6 +326,11 @@ agentSandbox:
326
326
# -- Check the live cluster for a supported Agent Sandbox API before rendering gateway resources. Disable only for offline rendering and linting.
327
327
enabled: true
328
328
329
+
storageClass:
330
+
preflight:
331
+
# -- On a fresh StatefulSet install with no server.dataStorageClass, check for a default StorageClass. The Helm identity must be allowed to list StorageClasses.
332
+
enabled: false
333
+
329
334
# Pod restart behavior and health probe tuning.
330
335
podLifecycle:
331
336
# -- Maximum time, in seconds, Kubernetes waits for the gateway to exit before
0 commit comments