Skip to content

Commit a95fb75

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

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
@@ -300,8 +300,6 @@ discovery endpoint or its TLS CA.
300300
| 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. |
301301
| server.providerTokenGrants.spiffe.enabled | bool | `false` | Mount the SPIFFE Workload API socket into gateway and sandbox pods for dynamic provider token grants. |
302302
| server.providerTokenGrants.spiffe.workloadApiSocketPath | string | `"/spiffe-workload-api/spire-agent.sock"` | Path to the SPIFFE Workload API socket mounted into gateway and sandbox pods. |
303-
| server.sandboxImage | string | `"ghcr.io/nvidia/openshell-community/sandboxes/base:latest"` | Default sandbox image used when requests do not specify one. |
304-
| 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. |
305303
| server.sandboxImagePullSecrets | list | `[]` | Image pull secrets attached to sandbox pods. Referenced Secrets must exist in the sandbox namespace. |
306304
| 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. |
307305
| 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
@@ -133,11 +133,6 @@ ghcr.io/nvidia/openshell/sandbox
133133
{{- end -}}
134134
{{- end }}
135135

136-
{{/* Official supervisor repository used by the gateway's built-in default. */}}
137-
{{- define "openshell.defaultSupervisorRepository" -}}
138-
ghcr.io/nvidia/openshell/supervisor
139-
{{- end }}
140-
141136
{{/*
142137
Whether the gateway listener should verify client certificates (mTLS).
143138
An explicit empty server.tls.clientCaSecretName disables client-CA wiring in
@@ -153,14 +148,6 @@ true
153148
{{- end -}}
154149
{{- end -}}
155150

156-
{{/*
157-
Whether Helm must propagate a supervisor image override into gateway.toml.
158-
The chart's documented repository and empty tag are the gateway-owned default.
159-
*/}}
160-
{{- define "openshell.supervisorImageOverrideEnabled" -}}
161-
true
162-
{{- end }}
163-
164151
{{/* Supervisor image override. */}}
165152
{{- define "openshell.supervisorImage" -}}
166153
{{- $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
@@ -143,9 +143,7 @@ data:
143143
{{- if include "openshell.sandboxRuntimeImageOverrideEnabled" . }}
144144
sandbox_runtime_image = {{ include "openshell.sandboxRuntimeImage" . | quote }}
145145
{{- end }}
146-
{{- if include "openshell.supervisorImageOverrideEnabled" . }}
147146
supervisor_image = {{ include "openshell.supervisorImage" . | quote }}
148-
{{- end }}
149147
{{- if .Values.server.hostGatewayIP }}
150148
host_gateway_ip = {{ .Values.server.hostGatewayIP | quote }}
151149
{{- end }}

‎deploy/helm/openshell/values.yaml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,6 @@ server:
246246
# from this Secret instead of using dbUrl. The Secret must contain a
247247
# `uri` key, e.g. postgresql://user:pass@host:5432/dbname.
248248
externalDbSecret: ""
249-
# -- Default sandbox image used when requests do not specify one.
250-
sandboxImage: "ghcr.io/nvidia/openshell-community/sandboxes/base:latest"
251-
# -- Pull policy for sandbox pods. Leave unset to use the Kubernetes image
252-
# default (Always for :latest, IfNotPresent otherwise). Prefer always,
253-
# if_not_present, or never; the chart also accepts legacy Kubernetes spellings
254-
# Always, IfNotPresent, and Never.
255-
sandboxImagePullPolicy: null
256249
# -- Image pull secrets attached to sandbox pods. Referenced Secrets must exist
257250
# in the sandbox namespace.
258251
sandboxImagePullSecrets: []

0 commit comments

Comments
 (0)