From 08b7e8ca279a173a54113359e529ad32aa3b47ef Mon Sep 17 00:00:00 2001 From: Chandan-DK Date: Thu, 30 May 2024 13:08:32 +0000 Subject: [PATCH] fix issue caused in cel policies due to chainsaw templating Signed-off-by: Chandan-DK --- .../require-drop-all/.chainsaw-test/chainsaw-test.yaml | 2 ++ .../require-drop-cap-net-raw/.chainsaw-test/chainsaw-test.yaml | 2 ++ .../restrict-image-registries/.chainsaw-test/chainsaw-test.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/best-practices-cel/require-drop-all/.chainsaw-test/chainsaw-test.yaml b/best-practices-cel/require-drop-all/.chainsaw-test/chainsaw-test.yaml index 600df3796..fef0c209b 100755 --- a/best-practices-cel/require-drop-all/.chainsaw-test/chainsaw-test.yaml +++ b/best-practices-cel/require-drop-all/.chainsaw-test/chainsaw-test.yaml @@ -5,6 +5,8 @@ metadata: creationTimestamp: null name: require-drop-all spec: + # disable templating because it can cause issues with CEL expressions + template: false steps: - name: step-01 try: diff --git a/best-practices-cel/require-drop-cap-net-raw/.chainsaw-test/chainsaw-test.yaml b/best-practices-cel/require-drop-cap-net-raw/.chainsaw-test/chainsaw-test.yaml index 039f84a46..5d9861e55 100755 --- a/best-practices-cel/require-drop-cap-net-raw/.chainsaw-test/chainsaw-test.yaml +++ b/best-practices-cel/require-drop-cap-net-raw/.chainsaw-test/chainsaw-test.yaml @@ -5,6 +5,8 @@ metadata: creationTimestamp: null name: require-drop-cap-net-raw spec: + # disable templating because it can cause issues with CEL expressions + template: false steps: - name: step-01 try: diff --git a/best-practices-cel/restrict-image-registries/.chainsaw-test/chainsaw-test.yaml b/best-practices-cel/restrict-image-registries/.chainsaw-test/chainsaw-test.yaml index 7b88108ac..9ee72fa4e 100755 --- a/best-practices-cel/restrict-image-registries/.chainsaw-test/chainsaw-test.yaml +++ b/best-practices-cel/restrict-image-registries/.chainsaw-test/chainsaw-test.yaml @@ -5,6 +5,8 @@ metadata: creationTimestamp: null name: restrict-image-registries spec: + # disable templating because it can cause issues with CEL expressions + template: false steps: - name: step-01 try: