Skip to content

Commit 6c2aa02

Browse files
Jeremy-Boylemdbooth
authored andcommitted
Backport Provider to v1alpha6
1 parent 71a9a2e commit 6c2aa02

File tree

6 files changed

+21
-12
lines changed

6 files changed

+21
-12
lines changed

api/v1alpha5/conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,6 @@ func Convert_v1alpha5_OpenStackMachineSpec_To_v1alpha7_OpenStackMachineSpec(in *
237237
}
238238

239239
func Convert_v1alpha7_APIServerLoadBalancer_To_v1alpha5_APIServerLoadBalancer(in *infrav1.APIServerLoadBalancer, out *APIServerLoadBalancer, s conversion.Scope) error {
240-
// Provider have been added in v1alpha7 but have no equivalent in v1alpha5
240+
// Provider was originally added in v1alpha7, but was backported to v1alpha6, but has no equivalent in v1alpha5
241241
return autoConvert_v1alpha7_APIServerLoadBalancer_To_v1alpha5_APIServerLoadBalancer(in, out, s)
242242
}

api/v1alpha6/conversion.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,6 @@ func Convert_v1alpha6_OpenStackMachineSpec_To_v1alpha7_OpenStackMachineSpec(in *
291291
return autoConvert_v1alpha6_OpenStackMachineSpec_To_v1alpha7_OpenStackMachineSpec(in, out, s)
292292
}
293293

294-
func Convert_v1alpha7_APIServerLoadBalancer_To_v1alpha6_APIServerLoadBalancer(in *infrav1.APIServerLoadBalancer, out *APIServerLoadBalancer, s conversion.Scope) error {
295-
// Provider have been added in v1alpha7 but have no equivalent in v1alpha6
296-
return autoConvert_v1alpha7_APIServerLoadBalancer_To_v1alpha6_APIServerLoadBalancer(in, out, s)
297-
}
298-
299294
func Convert_v1alpha7_OpenStackClusterSpec_To_v1alpha6_OpenStackClusterSpec(in *infrav1.OpenStackClusterSpec, out *OpenStackClusterSpec, s conversion.Scope) error {
300295
return autoConvert_v1alpha7_OpenStackClusterSpec_To_v1alpha6_OpenStackClusterSpec(in, out, s)
301296
}

api/v1alpha6/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ type APIServerLoadBalancer struct {
323323
AdditionalPorts []int `json:"additionalPorts,omitempty"`
324324
// AllowedCIDRs restrict access to all API-Server listeners to the given address CIDRs.
325325
AllowedCIDRs []string `json:"allowedCidrs,omitempty"`
326+
// Octavia Provider Used to create load balancer
327+
Provider string `json:"provider,omitempty"`
326328
}
327329

328330
// ValueSpec represents a single value_spec key-value pair.

api/v1alpha6/zz_generated.conversion.go

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4283,6 +4283,9 @@ spec:
42834283
description: Enabled defines whether a load balancer should be
42844284
created.
42854285
type: boolean
4286+
provider:
4287+
description: Octavia Provider Used to create load balancer
4288+
type: string
42864289
type: object
42874290
apiServerPort:
42884291
description: APIServerPort is the port on which the listener on the

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,6 +1508,9 @@ spec:
15081508
description: Enabled defines whether a load balancer should
15091509
be created.
15101510
type: boolean
1511+
provider:
1512+
description: Octavia Provider Used to create load balancer
1513+
type: string
15111514
type: object
15121515
apiServerPort:
15131516
description: APIServerPort is the port on which the listener

0 commit comments

Comments
 (0)