diff --git a/helm/blueapi/templates/statefulset.yaml b/helm/blueapi/templates/statefulset.yaml index d7595784e2..ef400c5999 100644 --- a/helm/blueapi/templates/statefulset.yaml +++ b/helm/blueapi/templates/statefulset.yaml @@ -95,6 +95,9 @@ spec: if [ $? -ne 0 ]; then echo 'Blueapi failed'; exit 1; fi; echo "Exporting venv as artefact" cp -r /app/.venv/* /artefacts + env: + - name: UV_CACHE_DIR + value: {{ (.Values.worker.scratch).root }} volumeMounts: - name: init-config mountPath: "/config" @@ -196,7 +199,11 @@ spec: - configMapRef: name: {{ include "blueapi.fullname" . }}-otel-config env: - {{- toYaml .Values.extraEnvVars | nindent 12 }} + - name: UV_CACHE_DIR + value: {{ (.Values.worker.scratch).root }} + {{- if .Values.extraEnvVars }} + {{- toYaml .Values.extraEnvVars | nindent 12 }} + {{- end }} {{- if ne 1000.0 .Values.securityContext.runAsUser }} - name: debug-account-sync image: ghcr.io/diamondlightsource/account-sync-sidecar:3.0.0 diff --git a/helm/blueapi/values.yaml b/helm/blueapi/values.yaml index 9831981c98..139b8447fc 100644 --- a/helm/blueapi/values.yaml +++ b/helm/blueapi/values.yaml @@ -36,8 +36,7 @@ podAnnotations: {} # For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ podLabels: {} -podSecurityContext: - {} +podSecurityContext: {} # fsGroup: 2000 securityContext: @@ -62,8 +61,7 @@ service: ingress: enabled: false className: "nginx" - annotations: - {} + annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" hosts: @@ -96,7 +94,6 @@ resources: requests: cpu: 200m memory: 400Mi - # -- Override resources for init container. By default copies resources of main container. initResources: {}