Skip to content

Commit 1253959

Browse files
committed
Rename CLUSTER env var to CLUSTER_NAME for consistency
CLUSTER_NAME is more descriptive than the bare CLUSTER. This renames the environment variable everywhere: Go code, Makefile, shell scripts, CI pipeline, docker-compose, and documentation.
1 parent fddfc3f commit 1253959

File tree

17 files changed

+81
-81
lines changed

17 files changed

+81
-81
lines changed

.pipelines/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ stages:
275275
# Run the E2E test suite
276276
- bash: |
277277
. ./hack/e2e/run-rp-and-e2e.sh
278-
echo "##vso[task.setvariable variable=CLUSTER]${CLUSTER}"
278+
echo "##vso[task.setvariable variable=CLUSTER_NAME]${CLUSTER_NAME}"
279279
echo "##vso[task.setvariable variable=DATABASE_NAME]${DATABASE_NAME}"
280-
displayName: Set CLUSTER and DATABASE_NAME
280+
displayName: Set CLUSTER_NAME and DATABASE_NAME
281281
- bash: |
282282
. ./hack/e2e/run-rp-and-e2e.sh
283283
az acr login --name arosvcdev
@@ -312,7 +312,7 @@ stages:
312312
# Since must-gather runs independently, we rebuild the binary on-demand.
313313
. secrets/env
314314
go build ./hack/db
315-
./hack/get-admin-kubeconfig.sh /subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$CLUSTER/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER > admin.kubeconfig
315+
./hack/get-admin-kubeconfig.sh /subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$CLUSTER_NAME/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME > admin.kubeconfig
316316
export KUBECONFIG=$(pwd)/admin.kubeconfig
317317
wget -nv https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/$(OpenShiftCLIVersion)/openshift-client-linux-$(OpenShiftCLIVersion).tar.gz
318318
tar xf openshift-client-linux-$(OpenShiftCLIVersion).tar.gz
@@ -406,9 +406,9 @@ stages:
406406
- bash: |
407407
. secrets/env
408408
. ./hack/e2e/run-rp-and-e2e.sh
409-
echo "##vso[task.setvariable variable=CLUSTER]${CLUSTER}"
409+
echo "##vso[task.setvariable variable=CLUSTER_NAME]${CLUSTER_NAME}"
410410
echo "##vso[task.setvariable variable=DATABASE_NAME]${DATABASE_NAME}"
411-
displayName: Set CLUSTER and DATABASE_NAME
411+
displayName: Set CLUSTER_NAME and DATABASE_NAME
412412
- bash: |
413413
sudo tdnf install -y azurelinux-repos-extended
414414
sudo tdnf install -y yq
@@ -460,7 +460,7 @@ stages:
460460
# Since must-gather runs independently, we rebuild the binary on-demand.
461461
. secrets/env
462462
go build ./hack/db
463-
./hack/get-admin-kubeconfig.sh /subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$CLUSTER/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER > admin.kubeconfig
463+
./hack/get-admin-kubeconfig.sh /subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$CLUSTER_NAME/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME > admin.kubeconfig
464464
export KUBECONFIG=$(pwd)/admin.kubeconfig
465465
wget -nv https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/$(OpenShiftCLIVersion)/openshift-client-linux-$(OpenShiftCLIVersion).tar.gz
466466
tar xf openshift-client-linux-$(OpenShiftCLIVersion).tar.gz

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ unit-test-python:
429429

430430
.PHONY: admin.kubeconfig
431431
admin.kubeconfig: ## Get cluster admin kubeconfig
432-
hack/get-admin-kubeconfig.sh /subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/${RESOURCEGROUP}/providers/Microsoft.RedHatOpenShift/openShiftClusters/${CLUSTER} >admin.kubeconfig
432+
hack/get-admin-kubeconfig.sh /subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/${RESOURCEGROUP}/providers/Microsoft.RedHatOpenShift/openShiftClusters/${CLUSTER_NAME} >admin.kubeconfig
433433

434434
.PHONY: aks.kubeconfig
435435
aks.kubeconfig: ## Get AKS admin kubeconfig

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ services:
183183
environment:
184184
<<: *common-env
185185
ARO_SELENIUM_HOSTNAME:
186-
CLUSTER:
186+
CLUSTER_NAME:
187187
E2E_DELETE_CLUSTER:
188188
E2E_LABEL:
189189
OS_CLUSTER_VERSION:

docs/adding-new-instance-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The desired instance types should be free of any restrictions. The subscription
4242
3) Follow steps in https://docs.microsoft.com/en-us/azure/openshift/tutorial-create-cluster to create a cluster, specifying `-worker-vm-size` and/or `--master-vm-size` in the `az aro create` step to specify an alternate sku:
4343

4444
~~~
45-
az aro create --resource-group $RESOURCEGROUP --name $CLUSTER --vnet aro-lseries --master-subnet master-subnet --worker-subnet worker-subnet --worker-vm-size "Standard_L8s_v2"
45+
az aro create --resource-group $RESOURCEGROUP --name $CLUSTER_NAME --vnet aro-lseries --master-subnet master-subnet --worker-subnet worker-subnet --worker-vm-size "Standard_L8s_v2"
4646
~~~
4747

4848
4) Once an install with an alternate size is successful, a basic check of cluster health can be conducted, as well as local e2e tests to confirm supportability.

docs/deploy-development-rp.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ mock a cluster MSI. This script will also create the platform identities, platfo
102102

103103
1. Create a resource group for your cluster and managed identities
104104

105-
1. Source the local dev script and run the command to set up the miwi env file for you
105+
1. Source the local dev script and run the command to set up the wimi env file for you
106106

107107
```bash
108108
source ./hack/devtools/local_dev_env.sh
@@ -203,13 +203,13 @@ mock a cluster MSI. This script will also create the platform identities, platfo
203203

204204
```bash
205205
# Create the cluster
206-
CLUSTER=<cluster-name> go run ./hack/cluster create
206+
CLUSTER_NAME=<cluster-name> go run ./hack/cluster create
207207
```
208208

209209
Later the cluster can be deleted as follows:
210210

211211
```bash
212-
CLUSTER=<cluster-name> go run ./hack/cluster delete
212+
CLUSTER_NAME=<cluster-name> go run ./hack/cluster delete
213213
```
214214

215215
By default, a public cluster will be created. In order to create a private cluster, set the `PRIVATE_CLUSTER` environment variable to `true` prior to creation. Internet access from the cluster can also be restricted by setting the `NO_INTERNET` environment variable to `true`.
@@ -365,7 +365,7 @@ After that, when you [create](https://github.com/Azure/ARO-RP/blob/master/docs/d
365365
## Make Admin-Action API call(s) to a running local-rp
366366
367367
```bash
368-
export CLUSTER=<cluster-name>
368+
export CLUSTER_NAME=<cluster-name>
369369
export AZURE_SUBSCRIPTION_ID=<subscription-id>
370370
export RESOURCEGROUP=<resource-group-name>
371371
[OR]
@@ -375,62 +375,62 @@ export RESOURCEGROUP=<resource-group-name>
375375
- Perform AdminUpdate on a dev cluster
376376
377377
```bash
378-
curl -X PATCH -k "https://localhost:8443/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER?api-version=admin" --header "Content-Type: application/json" -d "{}"
378+
curl -X PATCH -k "https://localhost:8443/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME?api-version=admin" --header "Content-Type: application/json" -d "{}"
379379
```
380380
381381
- Get Cluster details of a dev cluster
382382
383383
```bash
384-
curl -X GET -k "https://localhost:8443/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER?api-version=admin" --header "Content-Type: application/json" -d "{}"
384+
curl -X GET -k "https://localhost:8443/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME?api-version=admin" --header "Content-Type: application/json" -d "{}"
385385
```
386386
387387
- Get SerialConsole logs of a VM of dev cluster
388388
389389
```bash
390390
VMNAME="aro-cluster-qplnw-master-0"
391-
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/serialconsole?vmName=$VMNAME" --header "Content-Type: application/json" -d "{}"
391+
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/serialconsole?vmName=$VMNAME" --header "Content-Type: application/json" -d "{}"
392392
```
393393
394394
- Redeploy a VM in a dev cluster
395395
396396
```bash
397397
VMNAME="aro-cluster-qplnw-master-0"
398-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/redeployvm?vmName=$VMNAME" --header "Content-Type: application/json" -d "{}"
398+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/redeployvm?vmName=$VMNAME" --header "Content-Type: application/json" -d "{}"
399399
```
400400
401401
- Stop a VM in a dev cluster
402402
403403
```bash
404404
VMNAME="aro-cluster-qplnw-master-0"
405-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/stopvm?vmName=$VMNAME" --header "Content-Type: application/json" -d "{}"
405+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/stopvm?vmName=$VMNAME" --header "Content-Type: application/json" -d "{}"
406406
```
407407
408408
- Stop and [deallocate a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/states-billing) in a dev cluster
409409
410410
```bash
411411
VMNAME="aro-cluster-qplnw-master-0"
412-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/stopvm?vmName=$VMNAME&deallocateVM=True" --header "Content-Type: application/json" -d "{}"
412+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/stopvm?vmName=$VMNAME&deallocateVM=True" --header "Content-Type: application/json" -d "{}"
413413
```
414414
415415
- Start a VM in a dev cluster
416416
417417
```bash
418418
VMNAME="aro-cluster-qplnw-master-0"
419-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/startvm?vmName=$VMNAME" --header "Content-Type: application/json" -d "{}"
419+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/startvm?vmName=$VMNAME" --header "Content-Type: application/json" -d "{}"
420420
```
421421
422422
- List VM Resize Options for a master node of dev cluster
423423
424424
```bash
425-
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/skus" --header "Content-Type: application/json" -d "{}"
425+
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/skus" --header "Content-Type: application/json" -d "{}"
426426
```
427427
428428
- Resize master node of a dev cluster
429429
430430
```bash
431431
VMNAME="aro-cluster-qplnw-master-0"
432432
VMSIZE="Standard_D16s_v3"
433-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/resize?vmName=$VMNAME&vmSize=$VMSIZE" --header "Content-Type: application/json" -d "{}"
433+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/resize?vmName=$VMNAME&vmSize=$VMSIZE" --header "Content-Type: application/json" -d "{}"
434434
```
435435
436436
- List Clusters of a local-rp
@@ -442,13 +442,13 @@ export RESOURCEGROUP=<resource-group-name>
442442
- List cluster Azure Resources of a dev cluster
443443
444444
```bash
445-
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/resources"
445+
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/resources"
446446
```
447447
448448
- Perform Cluster Upgrade on a dev cluster
449449
450450
```bash
451-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/upgrade"
451+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/upgrade"
452452
```
453453
454454
- Get container logs from an OpenShift pod in a cluster
@@ -457,7 +457,7 @@ export RESOURCEGROUP=<resource-group-name>
457457
NAMESPACE=<namespace-name>
458458
POD=<pod-name>
459459
CONTAINER=<container-name>
460-
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/kubernetespodlogs?podname=$POD&namespace=$NAMESPACE&container=$CONTAINER"
460+
curl -X GET -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/kubernetespodlogs?podname=$POD&namespace=$NAMESPACE&container=$CONTAINER"
461461
```
462462
463463
- List Supported VM Sizes
@@ -470,27 +470,27 @@ export RESOURCEGROUP=<resource-group-name>
470470
- Perform Etcd Recovery Operation on a cluster
471471
472472
```bash
473-
curl -X PATCH -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/etcdrecovery"
473+
curl -X PATCH -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/etcdrecovery"
474474
```
475475
476476
- Delete a managed resource
477477
```bash
478478
MANAGED_RESOURCEID=<id of managed resource to delete>
479-
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/deletemanagedresource?managedResourceID=$MANAGED_RESOURCEID"
479+
curl -X POST -k "https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/deletemanagedresource?managedResourceID=$MANAGED_RESOURCEID"
480480
```
481481
482482
- Get top pod metrics for a dev cluster:
483483
484484
```bash
485485
curl -X GET -k \
486-
"https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/top/pods"
486+
"https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/top/pods"
487487
```
488488
489489
- Get top node metrics for a dev cluster
490490
491491
```bash
492492
curl -X GET -k \
493-
"https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER/top/nodes"
493+
"https://localhost:8443/admin/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME/top/nodes"
494494
```
495495
496496
## OpenShift Version
@@ -557,13 +557,13 @@ If you want to run the installer version via hive and not in container, you will
557557
558558
```bash
559559
sudo openvpn secrets/vpn-$LOCATION.ovpn &
560-
CLUSTER=cluster hack/ssh-agent.sh bootstrap
560+
CLUSTER_NAME=cluster hack/ssh-agent.sh bootstrap
561561
```
562562
563563
- Get an admin kubeconfig:
564564
565565
```bash
566-
CLUSTER=cluster make admin.kubeconfig
566+
CLUSTER_NAME=cluster make admin.kubeconfig
567567
export KUBECONFIG=admin.kubeconfig
568568
```
569569
@@ -584,11 +584,11 @@ If you want to run the installer version via hive and not in container, you will
584584
aro-dev-abc123-worker-eastus3-cbqs2 Ready worker 47h v1.19.0+2f3101c
585585
586586
587-
CLUSTER=cluster hack/ssh-agent.sh master0 # master node aro-dev-abc123-master-0
588-
CLUSTER=cluster hack/ssh-agent.sh aro-dev-abc123-worker-eastus1-2s5rb # worker aro-dev-abc123-worker-eastus1-2s5rb
589-
CLUSTER=cluster hack/ssh-agent.sh eastus1 # worker aro-dev-abc123-worker-eastus1-2s5rb
590-
CLUSTER=cluster hack/ssh-agent.sh 2s5rb # worker aro-dev-abc123-worker-eastus1-2s5rb
591-
CLUSTER=cluster hack/ssh-agent.sh bootstrap # the bootstrap node used to provision cluster
587+
CLUSTER_NAME=cluster hack/ssh-agent.sh master0 # master node aro-dev-abc123-master-0
588+
CLUSTER_NAME=cluster hack/ssh-agent.sh aro-dev-abc123-worker-eastus1-2s5rb # worker aro-dev-abc123-worker-eastus1-2s5rb
589+
CLUSTER_NAME=cluster hack/ssh-agent.sh eastus1 # worker aro-dev-abc123-worker-eastus1-2s5rb
590+
CLUSTER_NAME=cluster hack/ssh-agent.sh 2s5rb # worker aro-dev-abc123-worker-eastus1-2s5rb
591+
CLUSTER_NAME=cluster hack/ssh-agent.sh bootstrap # the bootstrap node used to provision cluster
592592
```
593593
594594
# Debugging AKS Cluster

docs/deploy-full-rp-service-in-dev.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,11 @@
428428

429429
1. Create the cluster
430430
```bash
431-
export CLUSTER=$USER
431+
export CLUSTER_NAME=$USER
432432
433433
az aro create \
434434
--resource-group $RESOURCEGROUP \
435-
--name $CLUSTER \
435+
--name $CLUSTER_NAME \
436436
--vnet aro-vnet \
437437
--master-subnet master-subnet \
438438
--worker-subnet worker-subnet

docs/disk-encryption-set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ az keyvault set-policy -n $KEYVAULT_NAME \
7777
- run the az aro create command
7878
```bash
7979
az aro create --resource-group $RESOURCEGROUP \
80-
--name $CLUSTER \
80+
--name $CLUSTER_NAME \
8181
--vnet aro-vnet \
8282
--master-subnet master-subnet \
8383
--worker-subnet worker-subnet \

docs/operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export ARO_IMAGE=quay.io/<user>/aro:latest
104104
- We can mimick the AdminUpdate when updating the ARO Operator
105105
This is the way we would test the same PUCM workflow we would use in Prod to update the operator.
106106
```
107-
curl -X PATCH -k "https://localhost:8443/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER?api-version=admin" --header "Content-Type: application/json" -d "{}"
107+
curl -X PATCH -k "https://localhost:8443/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$RESOURCEGROUP/providers/Microsoft.RedHatOpenShift/openShiftClusters/$CLUSTER_NAME?api-version=admin" --header "Content-Type: application/json" -d "{}"
108108
```
109109

110110
### How to create & publish ARO Operator image to ACR/Quay

docs/testing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ End to end tests are run using ginkgo. You can run subsets of tests or ignore so
7979
# source your environment file
8080
. ./secrets/env
8181

82-
# set the CLUSTER env if you are testing locally
83-
export CLUSTER=<cluster-name>
82+
# set the CLUSTER_NAME env if you are testing locally
83+
export CLUSTER_NAME=<cluster-name>
8484

8585
# source the e2e helper file
8686
. ./hack/e2e/run-rp-and-e2e.sh
@@ -119,13 +119,13 @@ clean_e2e_db
119119
If you already created a dev cluster, you can run the e2e tests just by running the following command:
120120

121121
```bash
122-
CLUSTER=<cluster-name> RESOURCEGROUP=<resource-group> make test-e2e
122+
CLUSTER_NAME=<cluster-name> RESOURCEGROUP=<resource-group> make test-e2e
123123
```
124124

125125
For smoke tests:
126126

127127
```bash
128-
CLUSTER=<cluster-name> RESOURCEGROUP=<resource-group> E2E_LABEL=smoke make test-e2e
128+
CLUSTER_NAME=<cluster-name> RESOURCEGROUP=<resource-group> E2E_LABEL=smoke make test-e2e
129129
```
130130

131131
### Run tests to private clusters
@@ -141,7 +141,7 @@ sudo openvpn secrets/vpn-eastus.ovpn # for eastus
141141
# sudo openvpn secrets/vpn-aks-westeurope.ovpn # for westeurope
142142
# sudo openvpn secrets/vpn-aks-australiaeast.ovpn # for australiaeast
143143

144-
CLUSTER=<cluster-name> RESOURCEGROUP=<resource-group> make test-e2e
144+
CLUSTER_NAME=<cluster-name> RESOURCEGROUP=<resource-group> make test-e2e
145145
```
146146

147147
#### az cli
@@ -210,7 +210,7 @@ After creating the VPN gateway, you can connect to it using the following comman
210210

211211
```bash
212212
sudo openvpn --config $VPN_CLIENT.ovpn
213-
CLUSTER=<cluster-name> RESOURCEGROUP=<resource-group> make test-e2e
213+
CLUSTER_NAME=<cluster-name> RESOURCEGROUP=<resource-group> make test-e2e
214214
```
215215

216216
### Run tests to upgraded clusters

0 commit comments

Comments
 (0)