From db9423f180b2591d09686007c0d2bbd7947c9492 Mon Sep 17 00:00:00 2001 From: eding Date: Wed, 16 Sep 2026 08:33:13 +0200 Subject: [PATCH] fix: use Tekton compute resources --- catalog/maidn-node-runtime-image.yaml | 2 +- catalog/maidn-node-static-image.yaml | 2 +- catalog/test-node-runtime-image.sh | 2 ++ catalog/test-node-static-image.sh | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/catalog/maidn-node-runtime-image.yaml b/catalog/maidn-node-runtime-image.yaml index 5a65c9b..171d843 100644 --- a/catalog/maidn-node-runtime-image.yaml +++ b/catalog/maidn-node-runtime-image.yaml @@ -72,7 +72,7 @@ spec: rm -f /work/askpass - name: build-layer image: node:22-alpine - resources: + computeResources: requests: memory: 256Mi limits: diff --git a/catalog/maidn-node-static-image.yaml b/catalog/maidn-node-static-image.yaml index dc7988e..c9ba0ba 100644 --- a/catalog/maidn-node-static-image.yaml +++ b/catalog/maidn-node-static-image.yaml @@ -71,7 +71,7 @@ spec: rm -f /work/askpass - name: build-layer image: node:22-alpine - resources: + computeResources: requests: memory: 256Mi limits: diff --git a/catalog/test-node-runtime-image.sh b/catalog/test-node-runtime-image.sh index 3b97719..f02c723 100644 --- a/catalog/test-node-runtime-image.sh +++ b/catalog/test-node-runtime-image.sh @@ -26,6 +26,7 @@ for value in \ 'npm install --ignore-scripts --no-audit --no-fund --package-lock=false' \ 'memory: 256Mi' \ 'memory: 512Mi' \ + 'computeResources:' \ 'npm run build' \ 'npm prune --omit=dev --ignore-scripts --no-audit --no-fund' \ 'cp package.json /work/layer/app/' \ @@ -49,3 +50,4 @@ for param in url revision image; do done ! grep -qiE 'kaniko|privileged: true' "$task" +! grep -q '^[[:space:]]*resources:' "$task" diff --git a/catalog/test-node-static-image.sh b/catalog/test-node-static-image.sh index a67659b..fe25493 100644 --- a/catalog/test-node-static-image.sh +++ b/catalog/test-node-static-image.sh @@ -27,6 +27,7 @@ for value in \ 'npm install --ignore-scripts --no-audit --no-fund --package-lock=false' \ 'memory: 256Mi' \ 'memory: 512Mi' \ + 'computeResources:' \ 'tar -C /work/layer -cf /work/layer.tar www' \ '--base=$(params.base-image)' \ '--new_tag=$(params.image):$(params.revision)'; do @@ -38,3 +39,4 @@ for param in url revision image output-directory build-configuration base-image; done ! grep -qiE 'kaniko|privileged: true' "$task" +! grep -q '^[[:space:]]*resources:' "$task"