Skip to content

Commit

Permalink
Make External Network Optional (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray authored Jun 10, 2024
1 parent f7c6ca6 commit 4c52c19
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/cluster-api-cluster-openstack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: cluster-api-cluster-openstack
description: A Helm chart to deploy a Kubernetes Cluster
type: application
version: v0.4.0
version: v0.4.1
icon: https://raw.githubusercontent.com/unikorn-cloud/helm-cluster-api/main/icons/default.png
4 changes: 3 additions & 1 deletion charts/cluster-api-cluster-openstack/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ spec:
managedSubnets:
- cidr: {{ .Values.network.nodeCIDR }}
dnsNameservers: {{ toJson .Values.network.dnsNameservers }}
{{- with $net := .Values.openstack.externalNetworkID }}
externalNetwork:
id: {{ .Values.openstack.externalNetworkID }}
id: {{ $net }}
{{- end }}
---
apiVersion: v1
kind: Secret
Expand Down
1 change: 0 additions & 1 deletion charts/cluster-api-cluster-openstack/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@
"required": [
"cloud",
"cloudsYAML",
"externalNetworkID",
"computeFailureDomain"
],
"properties": {
Expand Down
4 changes: 3 additions & 1 deletion charts/cluster-api-cluster-openstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ openstack:
cloudsYAML: Y2hhbmdlIG1lIQ==

# External (public) network ID.
externalNetworkID: b19ce45a-3278-48e4-8a0e-83100af68778
# If one is not specified, CAPO will use the only network it finds, otherwise
# it will error.
# externalNetworkID: b19ce45a-3278-48e4-8a0e-83100af68778

# Openstack endpoint CA, base64 encoded.
# ca: Y2hhbmdlIG1lIQ==
Expand Down

0 comments on commit 4c52c19

Please sign in to comment.