From b17b20c3a3c0e65989618ef3dd12b312dab0ce29 Mon Sep 17 00:00:00 2001 From: Frank Ketelaars Date: Fri, 15 Dec 2023 14:17:39 +0000 Subject: [PATCH] #593 Don't fail if CRD doesn't exist --- .../tasks/delete-watsonx_ai-instance.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/automation-roles/60-configure-cloud-pak/cp4d/cp4d-instance-watsonx_ai/tasks/delete-watsonx_ai-instance.yml b/automation-roles/60-configure-cloud-pak/cp4d/cp4d-instance-watsonx_ai/tasks/delete-watsonx_ai-instance.yml index 37b504bd5..f60b98769 100644 --- a/automation-roles/60-configure-cloud-pak/cp4d/cp4d-instance-watsonx_ai/tasks/delete-watsonx_ai-instance.yml +++ b/automation-roles/60-configure-cloud-pak/cp4d/cp4d-instance-watsonx_ai/tasks/delete-watsonx_ai-instance.yml @@ -2,6 +2,7 @@ - name: Check if Watsonxaiifm CRD exists shell: | oc get crd watsonxaiifm.watsonxaiifm.cpd.ibm.com + failed_when: False register: _watsonxiifm_crd_state - name: Delete deployment for watsonx.ai instance {{ _watsonx_ai_instance.model_id }}