Skip to content

Commit

Permalink
Added variables for RG and cluster name
Browse files Browse the repository at this point in the history
  • Loading branch information
suyadav1 committed Jan 31, 2025
1 parent d3f22ba commit 9cf4527
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pipelines/azure_pipeline_testframework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9cf4527

Please sign in to comment.