Skip to content

Commit ee90cbc

Browse files
authored
Merge branch 'main' into docs/kamaji
2 parents 525d805 + c48b6bc commit ee90cbc

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docs/providers/openstack/quickstart.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,15 @@ export CS_CLUSTER_NAME=cs-cluster
175175
export CS_POD_CIDR=192.168.0.0/16
176176
# Note: if you need more than one SERVICE_CIDR, please adjust the yaml file accordingly
177177
export CS_SERVICE_CIDR=10.96.0.0/12
178-
export CS_EXTERNAL_ID=ebfe5546-f09f-4f42-ab54-094e457d42ec # gx-scs
178+
export CS_EXTERNAL_ID=ebfe5546-f09f-4f42-ab54-094e457d42ec # Replace this by your external network ID
179179
export CS_CLASS_NAME=openstack-"${CS_NAME}"-"${CS_K8S_VERSION/./-}"-"${CS_VERSION}"
180180
export CS_K8S_PATCH_VERSION=6
181181
```
182182

183+
The `CS_EXTERNAL_ID` must be the UUID of your OpenStack external network, get it via
184+
`openstack network list --external`. If there is only one external network, you may
185+
get away without passing `external_id`.
186+
183187
Create and apply `cluster.yaml` file to the management cluster.
184188

185189
Depending on your cluster-class and cluster addons, some more variables may have to be provided in the `spec.topology.variables` list.

hack/generate_version.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def update_cluster_addon(
153153
dep["version"] = versions["occm"]
154154

155155
content["name"] = (
156-
f"openstack-scs-{get_dash_version(versions["kubernetes"])}-cluster-addon"
156+
f"openstack-scs-{get_dash_version(versions['kubernetes'])}-cluster-addon"
157157
)
158158

159159
writefile(target, content)
@@ -214,8 +214,8 @@ def update_cluster_class(target: PosixPath, **kwargs):
214214

215215
content["images"]["controlPlane"][
216216
"name"
217-
] = f"ubuntu-capi-image-v{kwargs["kubernetes"]}"
218-
content["images"]["worker"]["name"] = f"ubuntu-capi-image-v{kwargs["kubernetes"]}"
217+
] = f"ubuntu-capi-image-v{kwargs['kubernetes']}"
218+
content["images"]["worker"]["name"] = f"ubuntu-capi-image-v{kwargs['kubernetes']}"
219219

220220
writefile(values_file, content)
221221

@@ -241,7 +241,7 @@ def update_node_images(target: PosixPath, **kwargs):
241241

242242
content["openStackNodeImages"][0]["createOpts"][
243243
"name"
244-
] = f"ubuntu-capi-image-v{kwargs["kubernetes"]}"
244+
] = f"ubuntu-capi-image-v{kwargs['kubernetes']}"
245245

246246
writefile(target, content)
247247

@@ -272,7 +272,7 @@ def update_node_images(target: PosixPath, **kwargs):
272272
if args.list:
273273
print("Supported Kubernetes Versions:")
274274
for v in sup_versions:
275-
print(f"{".".join(v["kubernetes"].split(".")[0:2])}")
275+
print(f"{'.'.join(v['kubernetes'].split('.')[0:2])}")
276276
print("Usage: generate_version.py --target-version VERSION")
277277
sys.exit()
278278

0 commit comments

Comments
 (0)