Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Provider Network Support #16

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.5.1
version: v0.5.2
icon: https://raw.githubusercontent.com/unikorn-cloud/helm-cluster-api/main/icons/default.png
2 changes: 1 addition & 1 deletion charts/cluster-api-cluster-openstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
source:
repoURL: https://unikorn-cloud.github.io/helm-cluster-api
chart: cluster-api-cluster-openstack
targetRevision: v0.5.1
targetRevision: v0.5.2
helm:
releaseName: foo
# Remove the default work queue.
Expand Down
4 changes: 4 additions & 0 deletions charts/cluster-api-cluster-openstack/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ spec:
{{- end }}
managedSecurityGroups:
allowAllInClusterTraffic: true
{{- if .Values.network.networkID }}
network:
id: {{ .Values.network.networkID }}
{{- end }}
managedSubnets:
- cidr: {{ .Values.network.nodeCIDR }}
dnsNameservers: {{ toJson .Values.network.dnsNameservers }}
Expand Down
5 changes: 4 additions & 1 deletion charts/cluster-api-cluster-openstack/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,10 @@
},
"dnsNameservers": {
"$ref": "#/$defs/nonEmptyIPV4List"
}
},
"networkID": {
"type": "string"
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions charts/cluster-api-cluster-openstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,8 @@ network:
# DNS nameservers to use.
dnsNameservers:
- 8.8.8.8

# If specified defines an existing nwtork to use, if not defined a network
# will be created by CAPO. This allows you to use non-standard network
# types e.g. a VLAN to be used for baremetal nodes.
# networkID: 8f526b54-fab3-435d-b4b3-f65fd8474b8a
Loading