From ae004f8b1a5bc54179ae8d8518f38265cbca3a4b Mon Sep 17 00:00:00 2001 From: Khaja Omer Date: Mon, 29 Apr 2024 13:42:24 -0500 Subject: [PATCH] Add catch blocks for debugging --- e2e/default-CAPL-cluster/chainsaw-test.yaml | 6 ++++++ e2e/k3s-capl-cluster/chainsaw-test.yaml | 6 ++++++ e2e/rke2-capl-cluster/chainsaw-test.yaml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/e2e/default-CAPL-cluster/chainsaw-test.yaml b/e2e/default-CAPL-cluster/chainsaw-test.yaml index 3fc2897a1..e13158501 100755 --- a/e2e/default-CAPL-cluster/chainsaw-test.yaml +++ b/e2e/default-CAPL-cluster/chainsaw-test.yaml @@ -47,6 +47,12 @@ spec: file: default-cluster.yaml - assert: file: assert-child-cluster-resources.yaml + catch: + - events: + namespace: ($namespace) + - get: + apiVersion: cluster.x-k8s.io/v1beta1 + kind: MachineDeployment - name: Check if the linodes are created try: - script: diff --git a/e2e/k3s-capl-cluster/chainsaw-test.yaml b/e2e/k3s-capl-cluster/chainsaw-test.yaml index 3f714c745..26c95917a 100755 --- a/e2e/k3s-capl-cluster/chainsaw-test.yaml +++ b/e2e/k3s-capl-cluster/chainsaw-test.yaml @@ -47,6 +47,12 @@ spec: file: k3s-cluster.yaml - assert: file: assert-child-cluster-resources.yaml + catch: + - events: + namespace: ($namespace) + - get: + apiVersion: cluster.x-k8s.io/v1beta1 + kind: MachineDeployment - name: Check if the linodes are created try: - script: diff --git a/e2e/rke2-capl-cluster/chainsaw-test.yaml b/e2e/rke2-capl-cluster/chainsaw-test.yaml index 62c11408c..fbf68f602 100755 --- a/e2e/rke2-capl-cluster/chainsaw-test.yaml +++ b/e2e/rke2-capl-cluster/chainsaw-test.yaml @@ -47,6 +47,12 @@ spec: file: rke2-cluster.yaml - assert: file: assert-child-cluster-resources.yaml + catch: + - events: + namespace: ($namespace) + - get: + apiVersion: cluster.x-k8s.io/v1beta1 + kind: MachineDeployment - name: Check if the linodes are created try: - script: