Skip to content

Commit a04fbed

Browse files
authored
Merge pull request #509 from devigned/no-registry
fix: do not require REGISTRY in create-dev-cluster
2 parents f0ae314 + dc5ee2c commit a04fbed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ started prerequisites section](./getting-started.md#Prerequisites)
153153

154154
#### Creating a dev cluster
155155

156-
The steps below are provided in a convenient script in [hack/create-dev-cluster.sh](hack/create-dev-cluster.sh). Be sure to set `REGISTRY="<container-registry>"`, `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`, `AZURE_SUBSCRIPTION_ID`, and `AZURE_TENANT_ID` before running. Optionally, you can override the different cluster configuration variables. For example, to override the workload cluster name:
156+
The steps below are provided in a convenient script in [hack/create-dev-cluster.sh](hack/create-dev-cluster.sh). Be sure to set `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`, `AZURE_SUBSCRIPTION_ID`, and `AZURE_TENANT_ID` before running. Optionally, you can override the different cluster configuration variables. For example, to override the workload cluster name:
157157

158158
```bash
159159
CLUSTER_NAME=<my-capz-cluster-name> ./hack/create-dev-cluster.sh

hack/create-dev-cluster.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ set -o pipefail
2222
: "${AZURE_TENANT_ID:?Environment variable empty or not defined.}"
2323
: "${AZURE_CLIENT_ID:?Environment variable empty or not defined.}"
2424
: "${AZURE_CLIENT_SECRET:?Environment variable empty or not defined.}"
25-
: "${REGISTRY:?Environment variable empty or not defined.}"
25+
26+
export REGISTRY="${REGISTRY:-registry.local/fake}"
2627

2728
# Cluster settings.
2829
export CLUSTER_NAME="${CLUSTER_NAME:-capz-test}"

0 commit comments

Comments
 (0)