Skip to content

Commit

Permalink
Adjust the arguments.
Browse files Browse the repository at this point in the history
Signed-off-by: corvofeng <corvofeng@gmail.com>
  • Loading branch information
corvofeng committed May 20, 2024
1 parent 62d9a03 commit 401a705
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cmd/kubemux/internal/command/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,12 @@ func traverseConfigPath(cloud string) (map[string][]string, error) {
}

func fetchAllClusters(cloud string, showProgress bool, regions []string) ([]*kubernetes.CPCluster, error) {
var awsProvider km_aws.AWSProvider
// var awsProvider
providerMap := map[string]kubernetes.CloudProvider{
"aws": &km_aws.AWSProvider{},
}
awsProvider := providerMap["aws"]

var err error
if len(regions) == 0 {
regions, err = awsProvider.ListRegions()
Expand Down
2 changes: 1 addition & 1 deletion lib/cloud_provider/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type CloudProvider interface {
ListClusters(regions []string, setProgress func(int)) ([]*CPCluster, error)

// Get the cluster config
GetKubeconfig(cluster *CPCluster) (*clientcmdapi.Config, error)
SaveKubeconfig(cluster *CPCluster, configPath string) (*clientcmdapi.Config, error)

// Check if cluster config is modified or expired
// VerifyCluster(cluster CPCluster) (bool, string)
Expand Down

0 comments on commit 401a705

Please sign in to comment.