From 2a5f1a967df6e0463fdab2a27e5daa93b6e5cc6f 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..bea03f17 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: listpods + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceEndpoint: $(CLUSTER) + command: 'get' + arguments: '--namespace $(NAMESPACE) deployment' + + - task: Kubernetes@1 + displayName: 'List Installed Jobs' + name: listpods + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceEndpoint: $(CLUSTER) + command: 'get' + arguments: '--namespace $(NAMESPACE) jobs' + + - task: Kubernetes@1 + displayName: 'List Installed Volumes' + name: listpods + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceEndpoint: $(CLUSTER) + command: 'get' + arguments: '--namespace $(NAMESPACE) pvc,pv' + + - task: Kubernetes@1 + displayName: 'List Installed statefulsets' + name: listpods + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceEndpoint: $(CLUSTER) + command: 'get' + arguments: '--namespace $(NAMESPACE) statefulsets' + - task: HelmDeploy@0 displayName: Helm package inputs: