Skip to content

Commit 8d983d9

Browse files
committed
update paths in examples
1 parent b129575 commit 8d983d9

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

docs/examples/1-getting-started/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ kubectl port-forward deploy/netbox 8080:8080
2121

2222
# 0.3 Navigate to the example folder
2323

24-
Navigate to 'docs/examples/example1-getting-started' to run the examples below
24+
Navigate to 'docs/examples/1-getting-started' to run the examples below
2525

2626
# 1.1 Claim a Prefix
2727

@@ -46,7 +46,7 @@ kubectl get pxc,px
4646

4747
In this example, we use a `.spec.parentPrefixSelector`, which is a list of selectors that tell NetBox Operator from which parent prefixes to claim our Prefix from.
4848

49-
Navigate to 'docs/examples/example1-getting-started' to run the following commands.
49+
Navigate to 'docs/examples/1-getting-started' to run the following commands.
5050

5151
1. Inspect the spec of the sample prefix claim CR
5252
```bash

docs/examples/2-load-balancer-ip/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ kubectl port-forward deploy/netbox 8080:8080
2727

2828
### 0.3 Navigate to the example folder
2929

30-
Navigate to 'docs/examples/example2-load-balancer-ip/' to run the examples below
30+
Navigate to 'docs/examples/2-load-balancer-ip/' to run the examples below
3131

3232
## Example Steps
3333

34-
0. Install kro and metallb with the installation script `docs/examples/example2-load-balancer-ip/prepare-demo-env.sh`
35-
Then navigate to 'docs/examples/example2-load-balancer-ip' to follow the steps below.
34+
0. Install kro and metallb with the installation script `docs/examples/2-load-balancer-ip/prepare-demo-env.sh`
35+
Then navigate to 'docs/examples/2-load-balancer-ip' to follow the steps below.
3636

3737
1. Inspect the spec of the sample prefix claim CR
3838
```bash

docs/examples/2-load-balancer-ip/prepare-demo-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ while true; do
3333
sleep 5
3434
fi
3535
done
36-
kubectl apply --context $CONTEXT -f docs/examples/example2-load-balancer-ip/load-balancer-ip-pool-netbox.yaml
36+
kubectl apply --context $CONTEXT -f docs/examples/2-load-balancer-ip/load-balancer-ip-pool-netbox.yaml

docs/examples/5-multicluster/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This example shows how to claim multiple prefixes from different clusters and ma
88

99
### 0.1 Create a local cluster with nebox-installed
1010

11-
1. set up your local environment to run the following examples with the set up script 'docs/examples/example5-multicluster/prepare-demo-env.sh'
11+
1. set up your local environment to run the following examples with the set up script 'docs/examples/5-multicluster/prepare-demo-env.sh'
1212

1313
### 0.2 Manually Create a Prefix in NetBox
1414

@@ -23,17 +23,17 @@ kubectl port-forward deploy/netbox 8080:8080
2323

2424
### 0.3 Navigate to the example folder
2525

26-
Navigate to 'docs/examples/example5-multicluster/' to run the examples below
26+
Navigate to 'docs/examples/5-multicluster/' to run the examples below
2727

2828
## Example Steps
2929

3030
1. Create ip address pools on the london cluster
3131
```bash
32-
kubectl apply --context kind-london -f docs/examples/example5-multicluster/london-pools.yaml
32+
kubectl apply --context kind-london -f docs/examples/5-multicluster/london-pools.yaml
3333
```
3434
2. Create ip address pool on the zurich cluster
3535
```bash
36-
kubectl create --context kind-zurich -f docs/examples/example5-multicluster/zurich-pools.yaml
36+
kubectl create --context kind-zurich -f docs/examples/5-multicluster/zurich-pools.yaml
3737
```
3838
3. Look up the created prefix claims
3939
```bash

docs/examples/5-multicluster/create-kind-clusters.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ i=0
2020

2121
# Loop to create the specified number of clusters
2222
for clustername in "$@"; do
23-
config_file="docs/examples/example5-multicluster/cluster-cfg.yaml"
23+
config_file="docs/examples/5-multicluster/cluster-cfg.yaml"
2424
temp_config="tmp/cluster-$clustername-cfg.yaml"
2525
i=$((i + 1))
2626

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33
#create the kind clusters zurich and london
4-
./docs/examples/example5-multicluster/create-kind-clusters.sh zurich london
4+
./docs/examples/5-multicluster/create-kind-clusters.sh zurich london
55

66
# install netbox in the london cluster and load demo data
77
kubectl config use-context kind-london
@@ -11,17 +11,17 @@ kubectl config use-context kind-london
1111
kubectl config use-context kind-london
1212
kind load docker-image netbox-operator:build-local --name london
1313
kind load docker-image netbox-operator:build-local --name london # fixes an issue with podman where the image is not correctly tagged after the first kind load docker-image
14-
kustomize build docs/examples/example5-multicluster/ | kubectl apply -f -
14+
kustomize build docs/examples/5-multicluster/ | kubectl apply -f -
1515

1616
kubectl config use-context kind-zurich
1717
kind load docker-image netbox-operator:build-local --name zurich
1818
kind load docker-image netbox-operator:build-local --name zurich # fixes an issue with podman where the image is not correctly tagged after the first kind load docker-image
19-
kustomize build docs/examples/example5-multicluster/ | kubectl apply -f -
19+
kustomize build docs/examples/5-multicluster/ | kubectl apply -f -
2020
kind load docker-image curlimages/curl --name zurich
2121
kind load docker-image curlimages/curl --name zurich
2222
kubectl run curl --image curlimages/curl --image-pull-policy=Never -- sleep infinity
2323

2424
# expose netbox service
2525
kubectl config use-context kind-london
26-
kubectl apply -f docs/examples/example5-multicluster/netbox-svc.yaml
27-
kubectl apply -f docs/examples/example5-multicluster/netbox-l2advertisement.yaml
26+
kubectl apply -f docs/examples/5-multicluster/netbox-svc.yaml
27+
kubectl apply -f docs/examples/5-multicluster/netbox-l2advertisement.yaml

0 commit comments

Comments
 (0)