Files
ocdp-workload-manifests/packages/code-server

code-server Helm postRender

This package is consumed by OCDP as a Kustomize postRender for a Helm rendered code-server chart.

The platform chain is:

Helm chart + resolved values
  -> helm template
  -> packages/code-server/post-renders/k3s-hami
  -> final Kubernetes resources

post-renders/k3s-hami/kustomization.yaml patches the Helm output with environment-managed choices:

  • image: harbor.bwgdi.com/library/earth2studio-demo:v6
  • pull secret: regcred
  • scheduler: hami-scheduler
  • HAMi resource limit keys: nvidia.com/gpu and nvidia.com/gpumem
  • NodePort Service on port 80
  • weight StorageClass PVC mounted at /models

post-renders/k3s-hami-v4/kustomization.yaml keeps the same platform-managed settings but uses image harbor.bwgdi.com/library/earth2studio-demo:v4. It also seeds the image's /workspace contents into the workspace PVC on first start so the mounted volume does not hide the demo files baked into the image.

post-renders/k3s-hami/userInputs.yaml is the user-facing value contract. Users only choose CPU, memory, GPU count, and GPU memory. The console renders these fields as the WorkloadClaim form; the operator receives the resolved values on the Workload CR and applies the postRender patches. Storage, exposure, image, scheduler, pull secret, and code-server auth mode stay in the admin postRender.