Skip to content

Commit c07dc18

Browse files
committed
added guide to deploy a openstack cluster - hosted cp
Signed-off-by: Bharath Nallapeta <[email protected]> Signed-off-by: Bharath Nallapeta <[email protected]> Signed-off-by: Bharath Nallapeta <[email protected]>
1 parent 70b4a79 commit c07dc18

File tree

3 files changed

+416
-2
lines changed

3 files changed

+416
-2
lines changed

controllers/openstackmachine_controller_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ func TestOpenStackMachineSpecToOpenStackServerSpec(t *testing.T) {
8282
ID: ptr.To(openStackCluster.Status.Network.ID),
8383
},
8484
SecurityGroups: []infrav1.SecurityGroupParam{
85+
{
86+
ID: ptr.To(openStackCluster.Status.WorkerSecurityGroup.ID),
87+
},
8588
{
8689
ID: ptr.To(extraSecurityGroupUUID),
8790
},
@@ -189,8 +192,11 @@ func TestOpenStackMachineSpecToOpenStackServerSpec(t *testing.T) {
189192
want: &infrav1alpha1.OpenStackServerSpec{
190193
IdentityRef: identityRef,
191194
Ports: []infrav1.PortOpts{{
192-
Network: &infrav1.NetworkParam{ID: ptr.To(networkUUID)},
193-
SecurityGroups: []infrav1.SecurityGroupParam{{ID: ptr.To(extraSecurityGroupUUID)}},
195+
Network: &infrav1.NetworkParam{ID: ptr.To(networkUUID)},
196+
SecurityGroups: []infrav1.SecurityGroupParam{
197+
{ID: ptr.To(workerSecurityGroupUUID)},
198+
{ID: ptr.To(extraSecurityGroupUUID)},
199+
},
194200
}},
195201
Tags: tags,
196202
UserDataRef: userData,

docs/book/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [Configuration](clusteropenstack/configuration.md)
66
- [Topics](./topics/index.md)
77
- [external cloud provider](./topics/external-cloud-provider.md)
8+
- [hosted control plane](./topics/hosted-control-plane.md)
89
- [move from bootstrap](./topics/mover.md)
910
- [trouble shooting](./topics/troubleshooting.md)
1011
- [CRD Changes](./topics/crd-changes/index.md)

0 commit comments

Comments
 (0)