Skip to content

Commit 9cf4527

Browse files
committed
Added variables for RG and cluster name
1 parent d3f22ba commit 9cf4527

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pipelines/azure_pipeline_testframework.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ jobs:
4343
inputs:
4444
azureSubscription: 'ContainerInsights_Build_Subscription'
4545
scriptLocation: 'inlineScript'
46-
inlineScript: 'az aks get-credentials -g Monitoring-Model-Cluster-WEU -n Monitoring-Model-Cluster-WEU'
46+
inlineScript: 'az aks get-credentials -g $(RESOURCE_GROUP) -n $(CLUSTER_NAME)'
4747

4848
- bash: |
49-
envsubst < ./testkube/testkube-test-crs.yaml > ./testkube/testkube-test-crs-Monitoring-Model-Cluster-WEU.yaml
49+
envsubst < ./testkube/testkube-test-crs.yaml > ./testkube/testkube-test-crs-$(CLUSTER_NAME).yaml
5050
kubectl apply -f ./testkube/api-server-permissions.yaml
51-
kubectl apply -f ./testkube/testkube-test-crs-Monitoring-Model-Cluster-WEU.yaml
51+
kubectl apply -f ./testkube/testkube-test-crs-$(CLUSTER_NAME).yaml
5252
exit 0
5353
workingDirectory: $(Build.SourcesDirectory)/test/
5454
displayName: "Apply TestKube CRs and pod/service monitors"
55-
55+
5656
- bash: |
5757
sleep 120
5858
displayName: "Wait for cluster to be ready"

0 commit comments

Comments
 (0)