Skip to content

Commit

Permalink
Update openstack resources to capo v10.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Hildebrandt <[email protected]>
  • Loading branch information
paulphys committed Apr 19, 2024
1 parent 10b1593 commit b7e80d7
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ spec:
machineInfrastructure:
ref:
kind: OpenStackMachineTemplate
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
name: {{ .Release.Name }}-{{ .Chart.Version }}-control-plane
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
name: {{ .Release.Name }}-{{ .Chart.Version }}-cluster
workers:
Expand All @@ -29,7 +29,7 @@ spec:
name: {{ .Release.Name }}-{{ .Chart.Version }}
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
name: {{ .Release.Name }}-{{ .Chart.Version }}
variables:
Expand Down Expand Up @@ -164,7 +164,7 @@ spec:
enabledIf: {{ `'{{ ne .controller_flavor "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -178,7 +178,7 @@ spec:
enabledIf: {{ `'{{ ne .worker_flavor "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: false
Expand All @@ -195,7 +195,7 @@ spec:
enabledIf: {{ `"{{ if .controller_root_disk }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -210,7 +210,7 @@ spec:
enabledIf: {{ `"{{ if .worker_root_disk }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: false
Expand All @@ -228,7 +228,7 @@ spec:
enabledIf: {{ `'{{ ne .external_id "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -242,7 +242,7 @@ spec:
enabledIf: {{ `'{{ ne .node_cidr "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -256,7 +256,7 @@ spec:
enabledIf: {{ `"{{ if .dns_nameservers }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -270,7 +270,7 @@ spec:
enabledIf: {{ `"{{ if .openstack_security_groups }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -283,7 +283,7 @@ spec:
valueFrom:
template: {{ `"[ {{ range .openstack_security_groups }} { name: {{ . }}}, {{ end }} ]"` }}
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -295,7 +295,7 @@ spec:
description: "Enables custom load balancer for OpenStack API server"
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -309,7 +309,7 @@ spec:
enabledIf: {{ `'{{ ne .openstack_loadbalancer_apiserver_provider "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -323,7 +323,7 @@ spec:
enabledIf: {{ `'{{ ne .cloud_name "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -333,7 +333,7 @@ spec:
valueFrom:
variable: cloud_name
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -350,7 +350,7 @@ spec:
enabledIf: {{ `'{{ ne .secret_name "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -360,7 +360,7 @@ spec:
valueFrom:
variable: secret_name
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -377,7 +377,7 @@ spec:
enabledIf: {{ `'{{ ne .controller_server_group_id "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -391,7 +391,7 @@ spec:
enabledIf: {{ `'{{ ne .worker_server_group_id "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: false
Expand All @@ -408,7 +408,7 @@ spec:
enabledIf: {{ `'{{ ne .ssh_key "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
metadata:
name: {{ .Release.Name }}-{{ .Chart.Version }}-cluster
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: {{ .Release.Name }}-{{ .Chart.Version }}-control-plane
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: {{ .Release.Name }}-{{ .Chart.Version }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ spec:
machineInfrastructure:
ref:
kind: OpenStackMachineTemplate
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
name: {{ .Release.Name }}-{{ .Chart.Version }}-control-plane
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
name: {{ .Release.Name }}-{{ .Chart.Version }}-cluster
workers:
Expand All @@ -29,7 +29,7 @@ spec:
name: {{ .Release.Name }}-{{ .Chart.Version }}
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
name: {{ .Release.Name }}-{{ .Chart.Version }}
variables:
Expand Down Expand Up @@ -164,7 +164,7 @@ spec:
enabledIf: {{ `'{{ ne .controller_flavor "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -178,7 +178,7 @@ spec:
enabledIf: {{ `'{{ ne .worker_flavor "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: false
Expand All @@ -195,7 +195,7 @@ spec:
enabledIf: {{ `"{{ if .controller_root_disk }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -210,7 +210,7 @@ spec:
enabledIf: {{ `"{{ if .worker_root_disk }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: false
Expand All @@ -228,7 +228,7 @@ spec:
enabledIf: {{ `'{{ ne .external_id "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -242,7 +242,7 @@ spec:
enabledIf: {{ `'{{ ne .node_cidr "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -256,7 +256,7 @@ spec:
enabledIf: {{ `"{{ if .dns_nameservers }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -270,7 +270,7 @@ spec:
enabledIf: {{ `"{{ if .openstack_security_groups }}true{{end}}"` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -283,7 +283,7 @@ spec:
valueFrom:
template: {{ `"[ {{ range .openstack_security_groups }} { name: {{ . }}}, {{ end }} ]"` }}
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -295,7 +295,7 @@ spec:
description: "Enables custom load balancer for OpenStack API server"
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -309,7 +309,7 @@ spec:
enabledIf: {{ `'{{ ne .openstack_loadbalancer_apiserver_provider "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -323,7 +323,7 @@ spec:
enabledIf: {{ `'{{ ne .cloud_name "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -333,7 +333,7 @@ spec:
valueFrom:
variable: cloud_name
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -350,7 +350,7 @@ spec:
enabledIf: {{ `'{{ ne .secret_name "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
matchResources:
infrastructureCluster: true
Expand All @@ -360,7 +360,7 @@ spec:
valueFrom:
variable: secret_name
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -377,7 +377,7 @@ spec:
enabledIf: {{ `'{{ ne .controller_server_group_id "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand All @@ -391,7 +391,7 @@ spec:
enabledIf: {{ `'{{ ne .worker_server_group_id "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: false
Expand All @@ -408,7 +408,7 @@ spec:
enabledIf: {{ `'{{ ne .ssh_key "" }}'` }}
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
matchResources:
controlPlane: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackClusterTemplate
metadata:
name: {{ .Release.Name }}-{{ .Chart.Version }}-cluster
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: OpenStackMachineTemplate
metadata:
name: {{ .Release.Name }}-{{ .Chart.Version }}-control-plane
Expand Down
Loading

0 comments on commit b7e80d7

Please sign in to comment.