Skip to content

Commit

Permalink
add Akamai support
Browse files Browse the repository at this point in the history
Signed-off-by: YachikaRalhan <[email protected]>
  • Loading branch information
YachikaRalhan committed Oct 4, 2023
1 parent 164a58a commit 45946bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/hub/controllers/cluster/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const (
AWS string = "aws"
AZURE string = "azure"
LINODE string = "linode"
AKAMAI string = "akamai"
MAX_CLUSTER_DEREGISTRATION_ATTEMPTS = 3
)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 45946bb

Please sign in to comment.