Skip to content

Commit b9133d6

Browse files
committed
feat(openshell): switch to upstream in-process Kubernetes driver
Replace the external Go-based openshell-driver-openshift sidecar with the upstream Rust Kubernetes driver built into the gateway binary. The Go driver (kagenti/openshell-driver-openshift, fork of zanetworker/openshell-driver-openshift) is inactive and its proto is stale vs upstream NVIDIA/OpenShell. The in-process Rust K8s driver receives upstream improvements directly, including Platform Mode (NVIDIA/OpenShell#899) for restricted-v2 SCC compatibility. Add driverMode value (default: "kubernetes") to toggle between: - "kubernetes": in-process Rust driver, no sidecar needed - "external": legacy Go sidecar over Unix socket (backward compat) Signed-off-by: Ladislav Smola <[email protected]>
1 parent 159ca09 commit b9133d6

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎charts/openshell/templates/statefulset.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ spec:
6060
name: openshell-gateway-secrets
6161
key: ssh-handshake-secret
6262
- name: OPENSHELL_DRIVERS
63-
value: "external"
63+
value: {{ .Values.driverMode | quote }}
64+
{{- if eq .Values.driverMode "external" }}
6465
- name: OPENSHELL_COMPUTE_DRIVER_SOCKET
6566
value: "/run/drivers/compute.sock"
67+
{{- end }}
6668
- name: OPENSHELL_CREDENTIALS_DRIVER_SOCKET
6769
value: "/run/drivers/credentials.sock"
6870
{{- if .Values.trustedCABundle }}
@@ -95,6 +97,7 @@ spec:
9597
{{- end }}
9698
resources:
9799
{{- toYaml .Values.resources.gateway | nindent 12 }}
100+
{{- if eq .Values.driverMode "external" }}
98101
- name: compute-driver
99102
image: "{{ .Values.images.computeDriver.repository }}:{{ .Values.images.computeDriver.tag }}"
100103
imagePullPolicy: {{ .Values.images.computeDriver.pullPolicy }}
@@ -120,6 +123,7 @@ spec:
120123
mountPath: /run/drivers
121124
resources:
122125
{{- toYaml .Values.resources.computeDriver | nindent 12 }}
126+
{{- end }}
123127
- name: credentials-driver
124128
image: "{{ .Values.images.credentialsDriver.repository }}:{{ .Values.images.credentialsDriver.tag }}"
125129
imagePullPolicy: {{ .Values.images.credentialsDriver.pullPolicy }}

‎charts/openshell/values.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# -- Tenant name (used as namespace and audience)
22
tenant: ""
33

4+
# -- Compute driver mode: "external" uses the Go sidecar (openshell-driver-openshift),
5+
# "kubernetes" uses the in-process Rust K8s driver built into the gateway binary.
6+
driverMode: "kubernetes"
7+
48
# -- Container images
59
images:
610
gateway:

0 commit comments

Comments
 (0)