diff --git a/client/installer/get_supported_features_parameters.go b/client/installer/get_supported_features_parameters.go index 567622039a..5b8be5c5ce 100644 --- a/client/installer/get_supported_features_parameters.go +++ b/client/installer/get_supported_features_parameters.go @@ -77,7 +77,7 @@ type GetSupportedFeaturesParams struct { /* HighAvailabilityMode. - Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a full cluster over one node. + Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a cluster over one node. */ HighAvailabilityMode *string diff --git a/internal/featuresupport/features_networking.go b/internal/featuresupport/features_networking.go index cb51891cb2..24a51bcc7c 100644 --- a/internal/featuresupport/features_networking.go +++ b/internal/featuresupport/features_networking.go @@ -7,7 +7,7 @@ import ( "github.com/openshift/assisted-service/internal/common" "github.com/openshift/assisted-service/internal/network" "github.com/openshift/assisted-service/models" - "k8s.io/utils/strings/slices" + "github.com/thoas/go-funk" ) // VipAutoAllocFeature @@ -30,7 +30,7 @@ func (feature *VipAutoAllocFeature) getSupportLevel(filters SupportLevelFilters) string(models.PlatformTypeExternal), string(models.PlatformTypeNone), } - if filters.PlatformType != nil && slices.Contains( + if filters.PlatformType != nil && funk.Contains( unavailablePlatform, string(*filters.PlatformType)) { return models.SupportLevelUnavailable } diff --git a/restapi/embedded_spec.go b/restapi/embedded_spec.go index 3d91af5228..100d272da3 100644 --- a/restapi/embedded_spec.go +++ b/restapi/embedded_spec.go @@ -5866,7 +5866,7 @@ func init() { "None" ], "type": "string", - "description": "Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a full cluster over one node.", + "description": "Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a cluster over one node.", "name": "high_availability_mode", "in": "query" } @@ -16543,7 +16543,7 @@ func init() { "None" ], "type": "string", - "description": "Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a full cluster over one node.", + "description": "Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a cluster over one node.", "name": "high_availability_mode", "in": "query" } diff --git a/restapi/operations/installer/get_supported_features_parameters.go b/restapi/operations/installer/get_supported_features_parameters.go index ebef7ca8b0..6742db619a 100644 --- a/restapi/operations/installer/get_supported_features_parameters.go +++ b/restapi/operations/installer/get_supported_features_parameters.go @@ -48,7 +48,7 @@ type GetSupportedFeaturesParams struct { In: query */ ExternalPlatformName *string - /*Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a full cluster over one node. + /*Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a cluster over one node. In: query */ HighAvailabilityMode *string diff --git a/swagger.yaml b/swagger.yaml index 155ab75eb8..16f9303e15 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -3724,7 +3724,7 @@ paths: name: high_availability_mode type: string enum: [ 'Full', 'None' ] - description: Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a full cluster over one node. + description: Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a cluster over one node. responses: "200": description: Success. diff --git a/vendor/github.com/openshift/assisted-service/client/installer/get_supported_features_parameters.go b/vendor/github.com/openshift/assisted-service/client/installer/get_supported_features_parameters.go index 567622039a..5b8be5c5ce 100644 --- a/vendor/github.com/openshift/assisted-service/client/installer/get_supported_features_parameters.go +++ b/vendor/github.com/openshift/assisted-service/client/installer/get_supported_features_parameters.go @@ -77,7 +77,7 @@ type GetSupportedFeaturesParams struct { /* HighAvailabilityMode. - Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a full cluster over one node. + Guaranteed availability of the installed cluster. 'Full' installs a Highly-Available cluster over multiple master nodes whereas 'None' installs a cluster over one node. */ HighAvailabilityMode *string