From 83946433f92708febc6c4608cd4147c9ff8b2bbc Mon Sep 17 00:00:00 2001 From: Eran Ifrach Date: Tue, 19 Mar 2024 15:28:01 +0200 Subject: [PATCH] fix review suggestions --- internal/featuresupport/features_networking.go | 4 ++-- swagger.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/featuresupport/features_networking.go b/internal/featuresupport/features_networking.go index cb51891cb24..24a51bcc7c8 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/swagger.yaml b/swagger.yaml index 5b2c427f950..d63259c43a0 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -3715,7 +3715,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.