From 45946bbfdbee3f4e943b34704bea5b0075367727 Mon Sep 17 00:00:00 2001 From: YachikaRalhan Date: Wed, 4 Oct 2023 13:11:28 +0530 Subject: [PATCH] add Akamai support Signed-off-by: YachikaRalhan --- pkg/hub/controllers/cluster/reconciler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/hub/controllers/cluster/reconciler.go b/pkg/hub/controllers/cluster/reconciler.go index d6023a21c..104e13467 100644 --- a/pkg/hub/controllers/cluster/reconciler.go +++ b/pkg/hub/controllers/cluster/reconciler.go @@ -52,6 +52,7 @@ const ( AWS string = "aws" AZURE string = "azure" LINODE string = "linode" + AKAMAI string = "akamai" MAX_CLUSTER_DEREGISTRATION_ATTEMPTS = 3 ) @@ -312,7 +313,7 @@ func (r *Reconciler) updateClusterCloudProviderInfo(ctx context.Context, cr *hub } cloudProvider := clusterInfo.ClusterProperty.GeoLocation.CloudProvider cloudRegion := clusterInfo.ClusterProperty.GeoLocation.CloudRegion - if cloudProvider == GCP || cloudProvider == AWS || cloudProvider == AZURE || cloudProvider == LINODE { + if cloudProvider == GCP || cloudProvider == AWS || cloudProvider == AZURE || cloudProvider == LINODE || cloudProvider == AKAMAI { // compare the current cloud region and provider with values stored in cluster spec, if not same then update if cloudRegion != cr.Spec.ClusterProperty.GeoLocation.CloudRegion || cloudProvider != cr.Spec.ClusterProperty.GeoLocation.CloudProvider { log.Info("updating Cluster's cloud info", "cloudProvider", cloudProvider, "cloudRegion", cloudRegion)