Fetch kubeconfig prior to CRD purge
@@ -72,8 +72,16 @@ stages:
- stage: PurgeCRDs
jobs:
- job: RemoveCRDs
- displayName: Drop PurgeCRDs
+ displayName: Delete CRDs
steps:
+ - task: Kubernetes@1
+ displayName: Fetch kubeconfig
+ inputs:
+ connectionType: 'Kubernetes Service Connection'
+ kubernetesServiceEndpoint: 'ASO-AKS'
+ namespace: 'azureoperator-system'
+ command: 'login'
+ checkLatest: true
- bash: kubectl get crd --no-headers | awk '{print $1}' | xargs -L 1 -I % sh -c '{ kubectl delete crd %; sleep 3; }'
- stage: Deploy
