From e4566d38b7a109ce95098b132e6fb009e50367cb Mon Sep 17 00:00:00 2001 From: Imtiaz Uddin Date: Fri, 15 Nov 2024 11:26:31 +0600 Subject: [PATCH] Add akamai hosting provider Signed-off-by: Imtiaz Uddin --- api/v1/cluster.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/v1/cluster.go b/api/v1/cluster.go index 079bceb34..b40cd8d1e 100644 --- a/api/v1/cluster.go +++ b/api/v1/cluster.go @@ -35,12 +35,21 @@ const ( HostingProviderGeneric HostingProvider = "Generic" HostingProviderGKE HostingProvider = "GKE" HostingProviderLinode HostingProvider = "Linode" + HostingProviderAkamai HostingProvider = "Akamai" HostingProviderPacket HostingProvider = "Packet" HostingProviderRancher HostingProvider = "Rancher" HostingProviderScaleway HostingProvider = "Scaleway" HostingProviderVultr HostingProvider = "Vultr" ) +func (h HostingProvider) ConvertToPreferredProvider() HostingProvider { + switch h { + case HostingProviderLinode: + return HostingProviderAkamai + } + return h +} + const ( AceInfoConfigMapName = "ace-info"