Skip to content

Commit de9a1b2

Browse files
committed
Move floating IP control into machine
1 parent bf8a23c commit de9a1b2

8 files changed

+2092
-1705
lines changed

api/v1alpha5/zz_generated.conversion.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha6/zz_generated.conversion.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha7/openstackcluster_types.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,8 @@ type OpenStackClusterSpec struct {
7575
// +optional
7676
APIServerLoadBalancer APIServerLoadBalancer `json:"apiServerLoadBalancer,omitempty"`
7777

78-
// EnableWorkersFloatingIP determines whether or not to attempt to attach a floating
79-
// IP to the worker nodes. This allows for the user to white list worker requests in
80-
// external external services.
81-
// It must be activated by setting `enabled: true`.
82-
// +optional
83-
EnableWorkersFloatingIP bool `json:"enableWorkersFloatingIP,omitempty"`
78+
// Configure floating IP for the worker nodes
79+
WorkerFloatingIPConfig WorkerFloatingIPConfig `json:"workerFloatingIPConfig,omitempty"`
8480

8581
// DisableAPIServerFloatingIP determines whether or not to attempt to attach a floating
8682
// IP to the API server. This allows for the creation of clusters when attaching a floating

api/v1alpha7/types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ type ExternalRouterIPParam struct {
2929
Subnet SubnetFilter `json:"subnet"`
3030
}
3131

32+
type WorkerFloatingIPConfig struct {
33+
Enabled bool `json:"enabled,omitempty"`
34+
IPAddresses []string `json:"ipAddresses,omitempty"`
35+
}
36+
3237
type SecurityGroupFilter struct {
3338
ID string `json:"id,omitempty"`
3439
Name string `json:"name,omitempty"`

api/v1alpha7/zz_generated.deepcopy.go

Lines changed: 21 additions & 0 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: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4166,12 +4166,6 @@ spec:
41664166
type: string
41674167
type: array
41684168
x-kubernetes-list-type: set
4169-
enableWorkersFloatingIP:
4170-
description: 'EnableWorkersFloatingIP determines whether or not to
4171-
attempt to attach a floating IP to the worker nodes. This allows
4172-
for the user to white list worker requests in external external
4173-
services. It must be activated by setting `enabled: true`.'
4174-
type: boolean
41754169
externalNetworkId:
41764170
description: ExternalNetworkID is the ID of an external OpenStack
41774171
Network. This is necessary to get public internet to the VMs.
@@ -4339,6 +4333,16 @@ spec:
43394333
type: string
43404334
type: array
43414335
x-kubernetes-list-type: set
4336+
workerFloatingIPConfig:
4337+
description: Configure floating IP for the worker nodes
4338+
properties:
4339+
enabled:
4340+
type: boolean
4341+
ipAddresses:
4342+
items:
4343+
type: string
4344+
type: array
4345+
type: object
43424346
type: object
43434347
status:
43444348
description: OpenStackClusterStatus defines the observed state of OpenStackCluster.

0 commit comments

Comments
 (0)