From 9cf4527ca4a9e106d3c7e76190f046eac22ef111 Mon Sep 17 00:00:00 2001 From: Sunil Yadav Date: Thu, 30 Jan 2025 16:37:51 -0800 Subject: [PATCH] Added variables for RG and cluster name --- .pipelines/azure_pipeline_testframework.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pipelines/azure_pipeline_testframework.yaml b/.pipelines/azure_pipeline_testframework.yaml index 792bdb2b5..29685141e 100644 --- a/.pipelines/azure_pipeline_testframework.yaml +++ b/.pipelines/azure_pipeline_testframework.yaml @@ -43,16 +43,16 @@ jobs: inputs: azureSubscription: 'ContainerInsights_Build_Subscription' scriptLocation: 'inlineScript' - inlineScript: 'az aks get-credentials -g Monitoring-Model-Cluster-WEU -n Monitoring-Model-Cluster-WEU' + inlineScript: 'az aks get-credentials -g $(RESOURCE_GROUP) -n $(CLUSTER_NAME)' - bash: | - envsubst < ./testkube/testkube-test-crs.yaml > ./testkube/testkube-test-crs-Monitoring-Model-Cluster-WEU.yaml + envsubst < ./testkube/testkube-test-crs.yaml > ./testkube/testkube-test-crs-$(CLUSTER_NAME).yaml kubectl apply -f ./testkube/api-server-permissions.yaml - kubectl apply -f ./testkube/testkube-test-crs-Monitoring-Model-Cluster-WEU.yaml + kubectl apply -f ./testkube/testkube-test-crs-$(CLUSTER_NAME).yaml exit 0 workingDirectory: $(Build.SourcesDirectory)/test/ displayName: "Apply TestKube CRs and pod/service monitors" - + - bash: | sleep 120 displayName: "Wait for cluster to be ready"