From 7c79714002cf919a5c1229153707948d9d96a2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Tue, 5 Nov 2024 13:35:53 +0100 Subject: [PATCH] test: verify unwatched namespaces are being ignored MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei --- .github/workflows/tests-operator.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tests-operator.yml b/.github/workflows/tests-operator.yml index ae25f3cbb..6c4ec9ebb 100644 --- a/.github/workflows/tests-operator.yml +++ b/.github/workflows/tests-operator.yml @@ -59,3 +59,15 @@ jobs: namespace: 'single-install' cluster-name: 'cluster-example' ready-instances: '3' + + - name: Create a separate namespace + run: kubectl create ns test-ignore + + - name: Deploy a cluster in 'test-ignore' + uses: ./.github/actions/deploy-cluster + with: + namespace: 'test-ignore' + + - name: Verify the cluster in 'test-ignore' is being ignored + run: | + kubectl -n test-ignore get pods 2>&1 >/dev/null | grep 'No resources found'