Skip to content

Commit

Permalink
Merge pull request #7127 from shiftstack/osp_lb
Browse files Browse the repository at this point in the history
OSASINFRA-3153: move `loadBalancer` API to GA for OpenStack
  • Loading branch information
openshift-merge-robot committed May 31, 2023
2 parents 8e37a97 + 0321c41 commit d010f53
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 123 deletions.
2 changes: 1 addition & 1 deletion data/data/install.openshift.io_installconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3616,7 +3616,7 @@ spec:
type: string
loadBalancer:
description: LoadBalancer defines how the load balancer used by
the cluster is configured. LoadBalancer is available in TechPreview.
the cluster is configured.
properties:
type:
default: OpenShiftManagedDefault
Expand Down
1 change: 0 additions & 1 deletion pkg/types/openstack/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ type Platform struct {
MachinesSubnet string `json:"machinesSubnet,omitempty"`

// LoadBalancer defines how the load balancer used by the cluster is configured.
// LoadBalancer is available in TechPreview.
// +optional
LoadBalancer *configv1.OpenStackPlatformLoadBalancer `json:"loadBalancer,omitempty"`
}
4 changes: 0 additions & 4 deletions pkg/types/openstack/validation/techpreview.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ func FilledInTechPreviewFields(installConfig *types.InstallConfig) (fields []*fi
return nil
}

if installConfig.OpenStack.LoadBalancer != nil {
fields = append(fields, field.NewPath("platform", "openstack", "loadBalancer"))
}

if installConfig.ControlPlane != nil && installConfig.ControlPlane.Platform.OpenStack != nil && len(installConfig.ControlPlane.Platform.OpenStack.FailureDomains) > 0 {
fields = append(fields, field.NewPath("controlPlane", "platform", "openstack", "failureDomains"))
}
Expand Down
39 changes: 0 additions & 39 deletions pkg/types/openstack/validation/techpreview_test.go

This file was deleted.

14 changes: 0 additions & 14 deletions pkg/types/validation/installconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2028,20 +2028,6 @@ func TestValidateInstallConfig(t *testing.T) {
}(),
expectedError: "platform.openstack.apiVIPs: Invalid value: \"foobar\": \"foobar\" is not a valid IP",
},
{
name: "should reject load balancer on OpenStack if not TechPreviewNoUpgrade",
installConfig: func() *types.InstallConfig {
c := validInstallConfig()
c.Platform = types.Platform{
OpenStack: validOpenStackPlatform(),
}
c.Platform.OpenStack.LoadBalancer = &configv1.OpenStackPlatformLoadBalancer{
Type: configv1.LoadBalancerTypeOpenShiftManagedDefault,
}
return c
}(),
expectedError: `platform.openstack.loadBalancer: Forbidden: the TechPreviewNoUpgrade feature set must be enabled to use this field`,
},
{
name: "should not validate vips on VSphere if not set (vips are not required on VSphere)",
installConfig: func() *types.InstallConfig {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ platform:
cloud: ${OS_CLOUD}
loadBalancer:
type: OpenShiftManagedDefault
featureSet: TechPreviewNoUpgrade
pullSecret: ${PULL_SECRET}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ platform:
cloud: ${OS_CLOUD}
loadBalancer:
type: UserManaged
featureSet: TechPreviewNoUpgrade
pullSecret: ${PULL_SECRET}

0 comments on commit d010f53

Please sign in to comment.