Skip to content

Commit

Permalink
Merge pull request #100 from kubescape/not-supported-cloud
Browse files Browse the repository at this point in the history
returning not supported
  • Loading branch information
David Wertenteil authored May 26, 2024
2 parents 8461b4e + 71d2087 commit 2c77cfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cloudsupport/cloudproviderconfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cloudsupport/v1/cloudproviderv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (

const (
Version = "v1"
NotSupportedMsg = "Not supported"
NotSupportedMsg = "not supported"
)

// GetCloudProvider get cloud provider name from gitVersion/nodes
Expand Down

0 comments on commit 2c77cfc

Please sign in to comment.