@@ -38,7 +38,7 @@ This document explains how to develop Cluster API Provider OpenStack (CAPO).
38
38
Note that CAPO depends on ORC. No matter how you choose to work, you will need to deploy ORC in order to make CAPO functional:
39
39
40
40
``` bash
41
- kubectl apply -f https://github.com/k-orc/openstack-resource-controller/releases/download/v1.0.0 /install.yaml
41
+ kubectl apply -f https://github.com/k-orc/openstack-resource-controller/releases/latest/download /install.yaml
42
42
```
43
43
44
44
TL;DR: Here is a short version for how to develop with Tilt:
@@ -58,11 +58,12 @@ export RESOURCE_TYPE=...
58
58
make tilt-up
59
59
# Back in CAPO repo
60
60
# Install ORC
61
- kubectl apply -f https://github.com/k-orc/openstack-resource-controller/releases/download/v1.0.0 /install.yaml
61
+ kubectl apply -f https://github.com/k-orc/openstack-resource-controller/releases/latest/download /install.yaml
62
62
# Create secret with clouds.yaml (the file is created by create_devstack.sh)
63
63
kubectl create secret generic dev-test-cloud-config --from-file=clouds.yaml
64
64
# Add images to use in the tests
65
- clusterctl generate yaml --from templates/images-template.yaml | kubectl apply -f -
65
+ clusterctl generate yaml --from templates/image-template-node.yaml | kubectl apply -f -
66
+ clusterctl generate yaml --from templates/image-template-bastion.yaml | kubectl apply -f -
66
67
```
67
68
68
69
At this point, you should be able to apply the ` dev-test ` ClusterClass and start creating/deleting ` development ` clusters through the Tilt UI.
@@ -95,10 +96,11 @@ After generating `infrastructure-components.yaml`, replace the `us.gcr.io/k8s-ar
95
96
## Automatically Adding Images to OpenStack
96
97
97
98
Before you can create a Cluster, you will need a suitable image in OpenStack.
98
- There is a convenient template available in ` templates/images-template.yaml ` for this purpose.
99
+ There are convenient templates available in ` templates/image-template-*.yaml ` for this purpose.
100
+ For example:
99
101
100
102
``` bash
101
- clusterctl generate yaml --from templates/images -template.yaml | kubectl apply -f -
103
+ clusterctl generate yaml --from templates/image -template-node .yaml | kubectl apply -f -
102
104
```
103
105
104
106
## Testing Cluster Creation using the 'dev-test' ClusterClass with Tilt
0 commit comments