diff --git a/cloudsupport/cloudproviderconfiguration.go b/cloudsupport/cloudproviderconfiguration.go index a2efae2..ed36e7f 100644 --- a/cloudsupport/cloudproviderconfiguration.go +++ b/cloudsupport/cloudproviderconfiguration.go @@ -113,6 +113,8 @@ func GetDescribeRepositoriesFromCloudProvider(cluster string, cloudProvider stri case cloudsupportv1.AKS: //TODO - implement AKS support return nil, fmt.Errorf(cloudsupportv1.NotSupportedMsg) + default: + return nil, fmt.Errorf(cloudsupportv1.NotSupportedMsg) } return clusterInfo, nil @@ -150,6 +152,8 @@ func GetListEntitiesForPoliciesFromCloudProvider(cluster string, cloudProvider s if err != nil { return nil, err } + default: + return nil, fmt.Errorf(cloudsupportv1.NotSupportedMsg) } return listEntitiesForPolicies, nil @@ -187,6 +191,8 @@ func GetPolicyVersionFromCloudProvider(cluster string, cloudProvider string) (wo if err != nil { return nil, err } + default: + return nil, fmt.Errorf(cloudsupportv1.NotSupportedMsg) } return policyVersion, nil diff --git a/cloudsupport/v1/cloudproviderv1.go b/cloudsupport/v1/cloudproviderv1.go index 603a2c6..0f098c9 100644 --- a/cloudsupport/v1/cloudproviderv1.go +++ b/cloudsupport/v1/cloudproviderv1.go @@ -32,7 +32,7 @@ const ( const ( Version = "v1" - NotSupportedMsg = "Not supported" + NotSupportedMsg = "not supported" ) // GetCloudProvider get cloud provider name from gitVersion/nodes