From c3f14f322d39da85905111ce831b37fc5e7e71fa Mon Sep 17 00:00:00 2001 From: Shashikant Hirugade Date: Fri, 8 Aug 2025 15:50:40 -0600 Subject: [PATCH 1/2] fix: fixes EROFS from Yarn + Node 22 --- sdk-scheme-adapter/chart-service/templates/deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk-scheme-adapter/chart-service/templates/deployment.yaml b/sdk-scheme-adapter/chart-service/templates/deployment.yaml index 444df5ca3..d00c65033 100644 --- a/sdk-scheme-adapter/chart-service/templates/deployment.yaml +++ b/sdk-scheme-adapter/chart-service/templates/deployment.yaml @@ -69,6 +69,8 @@ spec: {{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }} {{- end }} volumes: + - name: writable-tmp + emptyDir: {} {{- if .Values.env.JWS_SIGN }} - name: jws-private-key secret: @@ -146,6 +148,8 @@ spec: {{- include "common.tplvalues.render" (dict "value" .Values.livenessProbe "context" $) | nindent 12 }} {{- end }} env: + - name: TMPDIR + value: /writable-tmp {{- if not (hasKey .Values.env "BACKEND_ENDPOINT") }} - name: BACKEND_ENDPOINT value: {{ printf "%s-backend:3000" (include "common.names.fullname" . ) }} @@ -177,3 +181,5 @@ spec: - name: jws-public-keys mountPath: "/jwsVerificationKeys/" {{- end }} + - name: writable-tmp + mountPath: /writable-tmp From ac051e8eeabbaf62eea69e5ec214f0dfe348d951 Mon Sep 17 00:00:00 2001 From: Shashikant Hirugade Date: Mon, 11 Aug 2025 21:01:56 -0600 Subject: [PATCH 2/2] fix: ml-testing-toolkit backend config files --- ml-testing-toolkit/chart-backend/templates/statefulset.yaml | 5 +---- ml-testing-toolkit/chart-backend/values.yaml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ml-testing-toolkit/chart-backend/templates/statefulset.yaml b/ml-testing-toolkit/chart-backend/templates/statefulset.yaml index dae753215..d019db32b 100644 --- a/ml-testing-toolkit/chart-backend/templates/statefulset.yaml +++ b/ml-testing-toolkit/chart-backend/templates/statefulset.yaml @@ -127,11 +127,8 @@ spec: mountPath: /opt/app/examples/environments/{{ $k }} subPath: {{ $k }} {{- end }} - {{- range $k, $v := .Values.config_files }} - name: {{ $serviceFullName }}-volume-config-default - mountPath: /opt/app/spec_files/{{ $k | replace "__" "/" }} - subPath: {{ $k }} - {{- end }} + mountPath: /opt/default_config - name: release-cd-rc mountPath: /home/ml-user/.release_cd volumes: diff --git a/ml-testing-toolkit/chart-backend/values.yaml b/ml-testing-toolkit/chart-backend/values.yaml index d122d065a..4c7f36755 100644 --- a/ml-testing-toolkit/chart-backend/values.yaml +++ b/ml-testing-toolkit/chart-backend/values.yaml @@ -28,7 +28,7 @@ replicaCount: 1 # .Values.persistence.enabled = true commandPersistence: '["sh", "-c", "if [ -d /opt/ttk-data ]; then if [ ! -d /opt/ttk-data/spec_files ]; then cp -pR spec_files /opt/ttk-data/spec_files; fi; mv spec_files spec_files_bkp; ln -s /opt/ttk-data/spec_files spec_files; fi; npm run start;"]' # .Values.persistence.enabled = false -command: '["sh", "-c", "npm run start;"]' +command: '["sh", "-c", "cd /opt/default_config; for FILE in *; do newFileName=/opt/app/spec_files/${FILE//__/\\/}; mkdir -p ${newFileName%/*}; firstLine=$(head -n 1 $FILE | tr -d \\\"); regex=\"^(http|https|ftp)://\"; if [[ \"$firstLine\" =~ $regex ]]; then wget $firstLine -O $newFileName; else cp $FILE $newFileName; fi; done; cd /opt/app; npm run start;"]' ## Pod scheduling preferences. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity