Skip to content

Commit 1c1ca77

Browse files
committed
refactor(helm): simplify image configuration
Signed-off-by: Bobbins228 <mcampbel@redhat.com>
1 parent b65fdd7 commit 1c1ca77

4 files changed

Lines changed: 0 additions & 24 deletions

File tree

‎deploy/helm/openshell/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,6 @@ discovery endpoint or its TLS CA.
325325
| server.policyValidationFailureMode | string | `"fail_closed"` | Posture when a candidate sandbox policy fails validation. `fail_closed` deactivates the previous policy; `retain_last_valid` keeps it active. |
326326
| server.providerTokenGrants.spiffe.enabled | bool | `false` | Mount the SPIFFE Workload API socket into gateway and sandbox pods for dynamic provider token grants. |
327327
| server.providerTokenGrants.spiffe.workloadApiSocketPath | string | `"/spiffe-workload-api/spire-agent.sock"` | Path to the SPIFFE Workload API socket mounted into gateway and sandbox pods. |
328-
| server.sandboxImage | string | `"nvcr.io/nvidia/base/ubuntu:24.04"` | Default sandbox image used when requests do not specify one. |
329-
| server.sandboxImagePullPolicy | string | `nil` | Pull policy for sandbox pods. Leave unset to use the Kubernetes image default (Always for :latest, IfNotPresent otherwise). Prefer always, if_not_present, or never; the chart also accepts legacy Kubernetes spellings Always, IfNotPresent, and Never. |
330328
| server.sandboxImagePullSecrets | list | `[]` | Image pull secrets attached to sandbox pods. Referenced Secrets must exist in the sandbox namespace. |
331329
| server.sandboxJwt.gatewayId | string | `""` | Stable gateway identity embedded in iss/aud of every minted token. Defaults to the release name so HA replicas share identity. |
332330
| server.sandboxJwt.k8sSaTokenTtlSecs | int | `3600` | Lifetime (seconds) of the projected ServiceAccount token kubelet writes into each sandbox pod for the IssueSandboxToken bootstrap exchange. Kubelet enforces a minimum of 600s; the driver clamps values outside [600, 86400]. Default 3600 — generous, since the supervisor consumes the token within seconds of pod start. |

‎deploy/helm/openshell/templates/_helpers.tpl‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,6 @@ ghcr.io/nvidia/openshell/sandbox
136136
{{- end -}}
137137
{{- end }}
138138

139-
{{/* Official supervisor repository used by the gateway's built-in default. */}}
140-
{{- define "openshell.defaultSupervisorRepository" -}}
141-
ghcr.io/nvidia/openshell/supervisor
142-
{{- end }}
143-
144139
{{/*
145140
Whether the gateway listener should verify client certificates (mTLS).
146141
An explicit empty server.tls.clientCaSecretName disables client-CA wiring in
@@ -156,14 +151,6 @@ true
156151
{{- end -}}
157152
{{- end -}}
158153

159-
{{/*
160-
Whether Helm must propagate a supervisor image override into gateway.toml.
161-
The chart's documented repository and empty tag are the gateway-owned default.
162-
*/}}
163-
{{- define "openshell.supervisorImageOverrideEnabled" -}}
164-
true
165-
{{- end }}
166-
167154
{{/* Supervisor image override. */}}
168155
{{- define "openshell.supervisorImage" -}}
169156
{{- $global := .Values.global.image -}}

‎deploy/helm/openshell/templates/gateway-config.yaml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ data:
144144
{{- if include "openshell.sandboxRuntimeImageOverrideEnabled" . }}
145145
sandbox_runtime_image = {{ include "openshell.sandboxRuntimeImage" . | quote }}
146146
{{- end }}
147-
{{- if include "openshell.supervisorImageOverrideEnabled" . }}
148147
supervisor_image = {{ include "openshell.supervisorImage" . | quote }}
149-
{{- end }}
150148
{{- if .Values.server.hostGatewayIP }}
151149
host_gateway_ip = {{ .Values.server.hostGatewayIP | quote }}
152150
{{- end }}

‎deploy/helm/openshell/values.yaml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,6 @@ server:
263263
# from this Secret instead of using dbUrl. The Secret must contain a
264264
# `uri` key, e.g. postgresql://user:pass@host:5432/dbname.
265265
externalDbSecret: ""
266-
# -- Default sandbox image used when requests do not specify one.
267-
sandboxImage: "nvcr.io/nvidia/base/ubuntu:24.04"
268-
# -- Pull policy for sandbox pods. Leave unset to use the Kubernetes image
269-
# default (Always for :latest, IfNotPresent otherwise). Prefer always,
270-
# if_not_present, or never; the chart also accepts legacy Kubernetes spellings
271-
# Always, IfNotPresent, and Never.
272-
sandboxImagePullPolicy: null
273266
# -- Image pull secrets attached to sandbox pods. Referenced Secrets must exist
274267
# in the sandbox namespace.
275268
sandboxImagePullSecrets: []

0 commit comments

Comments
 (0)