From d6a1995c7ee6a18b92bcd6d195a18acded62e2d9 Mon Sep 17 00:00:00 2001 From: Brian Thorne Date: Mon, 29 Nov 2021 09:51:45 +1300 Subject: [PATCH] Debugging azure deployment --- azure-pipelines.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e2bbfde7..763b3f5f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -272,6 +272,43 @@ stages: inputs: helmVersionToInstall: 'latest' + # Show what is installed in the test namespace in-case a cleanup has failed + - task: Kubernetes@1 + displayName: 'List Installed Deployments' + name: listdeployments + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceEndpoint: $(CLUSTER) + command: 'get' + arguments: '--namespace $(NAMESPACE) deployment' + + - task: Kubernetes@1 + displayName: 'List Installed Jobs' + name: listjobs + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceEndpoint: $(CLUSTER) + command: 'get' + arguments: '--namespace $(NAMESPACE) jobs' + + - task: Kubernetes@1 + displayName: 'List Installed Volumes' + name: listvols + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceEndpoint: $(CLUSTER) + command: 'get' + arguments: '--namespace $(NAMESPACE) pvc,pv' + + - task: Kubernetes@1 + displayName: 'List Installed statefulsets' + name: liststatefulsets + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceEndpoint: $(CLUSTER) + command: 'get' + arguments: '--namespace $(NAMESPACE) statefulsets' + - task: HelmDeploy@0 displayName: Helm package inputs: