From a17756cac6bdb8508601e2bec4079ca1d629d1a5 Mon Sep 17 00:00:00 2001 From: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> Date: Thu, 1 Aug 2024 21:13:57 +0530 Subject: [PATCH] added the changes Signed-off-by: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> --- cli/cmd/createCluster.go | 22 +++++++ cli/cmd/deleteCluster.go | 24 ++++++++ cli/cmd/infoCluster.go | 3 + cli/cmd/switchCluster.go | 4 ++ cli/cmd/utils.go | 34 +++++++++++ gen/docs.md/ksctl.md | 2 +- gen/docs.md/ksctl_create-cluster.md | 2 +- gen/docs.md/ksctl_create-cluster_azure.md | 2 +- gen/docs.md/ksctl_create-cluster_civo.md | 2 +- gen/docs.md/ksctl_create-cluster_ha-aws.md | 2 +- .../ksctl_create-cluster_ha-aws_add-nodes.md | 2 +- gen/docs.md/ksctl_create-cluster_ha-azure.md | 2 +- ...ksctl_create-cluster_ha-azure_add-nodes.md | 2 +- gen/docs.md/ksctl_create-cluster_ha-civo.md | 2 +- .../ksctl_create-cluster_ha-civo_add-nodes.md | 2 +- gen/docs.md/ksctl_create-cluster_local.md | 2 +- gen/docs.md/ksctl_cred.md | 2 +- gen/docs.md/ksctl_delete-cluster.md | 2 +- gen/docs.md/ksctl_delete-cluster_azure.md | 2 +- gen/docs.md/ksctl_delete-cluster_civo.md | 2 +- gen/docs.md/ksctl_delete-cluster_ha-aws.md | 2 +- .../ksctl_delete-cluster_ha-aws_del-nodes.md | 2 +- gen/docs.md/ksctl_delete-cluster_ha-azure.md | 2 +- ...ksctl_delete-cluster_ha-azure_del-nodes.md | 2 +- gen/docs.md/ksctl_delete-cluster_ha-civo.md | 2 +- .../ksctl_delete-cluster_ha-civo_del-nodes.md | 2 +- gen/docs.md/ksctl_delete-cluster_local.md | 2 +- gen/docs.md/ksctl_get-clusters.md | 2 +- gen/docs.md/ksctl_info-cluster.md | 2 +- gen/docs.md/ksctl_switch-cluster.md | 2 +- gen/docs.md/ksctl_version.md | 2 +- gen/docs.rst/ksctl.rst | 2 +- gen/docs.rst/ksctl_create-cluster.rst | 2 +- gen/docs.rst/ksctl_create-cluster_azure.rst | 2 +- gen/docs.rst/ksctl_create-cluster_civo.rst | 2 +- gen/docs.rst/ksctl_create-cluster_ha-aws.rst | 2 +- .../ksctl_create-cluster_ha-aws_add-nodes.rst | 2 +- .../ksctl_create-cluster_ha-azure.rst | 2 +- ...sctl_create-cluster_ha-azure_add-nodes.rst | 2 +- gen/docs.rst/ksctl_create-cluster_ha-civo.rst | 2 +- ...ksctl_create-cluster_ha-civo_add-nodes.rst | 2 +- gen/docs.rst/ksctl_create-cluster_local.rst | 2 +- gen/docs.rst/ksctl_cred.rst | 2 +- gen/docs.rst/ksctl_delete-cluster.rst | 2 +- gen/docs.rst/ksctl_delete-cluster_azure.rst | 2 +- gen/docs.rst/ksctl_delete-cluster_civo.rst | 2 +- gen/docs.rst/ksctl_delete-cluster_ha-aws.rst | 2 +- .../ksctl_delete-cluster_ha-aws_del-nodes.rst | 2 +- .../ksctl_delete-cluster_ha-azure.rst | 2 +- ...sctl_delete-cluster_ha-azure_del-nodes.rst | 2 +- gen/docs.rst/ksctl_delete-cluster_ha-civo.rst | 2 +- ...ksctl_delete-cluster_ha-civo_del-nodes.rst | 2 +- gen/docs.rst/ksctl_delete-cluster_local.rst | 2 +- gen/docs.rst/ksctl_get-clusters.rst | 2 +- gen/docs.rst/ksctl_info-cluster.rst | 2 +- gen/docs.rst/ksctl_switch-cluster.rst | 2 +- gen/docs.rst/ksctl_version.rst | 2 +- go.mod | 33 ++++++----- go.sum | 58 ++++++++++--------- 59 files changed, 187 insertions(+), 95 deletions(-) diff --git a/cli/cmd/createCluster.go b/cli/cmd/createCluster.go index 9818cd5..6b53534 100644 --- a/cli/cmd/createCluster.go +++ b/cli/cmd/createCluster.go @@ -39,6 +39,26 @@ ksctl create-cluster azure -n demo -r eastus -s store-local --nodeSizeMP Standar }, } +var createClusterAws = &cobra.Command{ + Use: "aws", + Example: ` +ksctl create-cluster aws -n demo -r ap-south-1 -s store-local --nodeSizeMP t2.micro --noMP 3 +`, + Short: "Use to create a EKS cluster in Aws", + Long: "It is used to create cluster with the given name from user", + Run: func(cmd *cobra.Command, args []string) { + verbosity, _ := cmd.Flags().GetInt("verbose") + var log types.LoggerFactory = logger.NewLogger(verbosity, os.Stdout) + SetRequiredFeatureFlags(ctx, log, cmd) + + cli.Client.Metadata.Provider = consts.CloudAws + + SetDefaults(consts.CloudAws, consts.ClusterTypeMang) + + createManaged(ctx, log, cmd.Flags().Lookup("yes").Changed) + }, +} + var createClusterCivo = &cobra.Command{ Use: "civo", Example: ` @@ -150,8 +170,10 @@ func init() { createClusterCmd.AddCommand(createClusterHACivo) createClusterCmd.AddCommand(createClusterHAAzure) createClusterCmd.AddCommand(createClusterHAAws) + createClusterCmd.AddCommand(createClusterAws) createClusterAzure.MarkFlagRequired("name") + createClusterAws.MarkFlagRequired("name") createClusterCivo.MarkFlagRequired("name") createClusterCivo.MarkFlagRequired("region") createClusterLocal.MarkFlagRequired("name") diff --git a/cli/cmd/deleteCluster.go b/cli/cmd/deleteCluster.go index dfa9024..871e363 100644 --- a/cli/cmd/deleteCluster.go +++ b/cli/cmd/deleteCluster.go @@ -38,6 +38,7 @@ ksctl delete local --name demo --storage store-local deleteManaged(ctx, log, cmd.Flags().Lookup("yes").Changed) }, } + var deleteClusterAzure = &cobra.Command{ Use: "azure", Example: ` @@ -58,6 +59,26 @@ ksctl delete azure --name demo --region eastus --storage store-local }, } +var deleteClusterAws = &cobra.Command{ + Use: "aws", + Example: ` +ksctl delete aws --name demo --region ap-south-1 --storage store-local +`, + Short: "Use to deletes a EKS cluster", + Long: "It is used to delete cluster of given provider", + Run: func(cmd *cobra.Command, args []string) { + verbosity, _ := cmd.Flags().GetInt("verbose") + var log types.LoggerFactory = logger.NewLogger(verbosity, os.Stdout) + SetRequiredFeatureFlags(ctx, log, cmd) + + cli.Client.Metadata.Provider = consts.CloudAws + + SetDefaults(consts.CloudAws, consts.ClusterTypeMang) + + deleteManaged(ctx, log, cmd.Flags().Lookup("yes").Changed) + }, +} + var deleteClusterCivo = &cobra.Command{ Use: "civo", Example: ` @@ -147,7 +168,10 @@ func init() { deleteClusterCmd.AddCommand(deleteClusterAzure) deleteClusterCmd.AddCommand(deleteClusterLocal) deleteClusterCmd.AddCommand(deleteClusterHAAws) + deleteClusterCmd.AddCommand(deleteClusterAws) + deleteClusterAws.MarkFlagRequired("name") + deleteClusterAws.MarkFlagRequired("region") deleteClusterAzure.MarkFlagRequired("name") deleteClusterAzure.MarkFlagRequired("region") deleteClusterCivo.MarkFlagRequired("name") diff --git a/cli/cmd/infoCluster.go b/cli/cmd/infoCluster.go index 60991a0..fccd356 100644 --- a/cli/cmd/infoCluster.go +++ b/cli/cmd/infoCluster.go @@ -53,6 +53,9 @@ ksctl info -p ha-azure -n ha-demo-kubeadm -r eastus -s store-local --verbose -1 cli.Client.Metadata.Provider = consts.CloudAws cli.Client.Metadata.IsHA = true + case string(consts.CloudAws): + cli.Client.Metadata.Provider = consts.CloudAws + case string(consts.CloudAzure): cli.Client.Metadata.Provider = consts.CloudAzure default: diff --git a/cli/cmd/switchCluster.go b/cli/cmd/switchCluster.go index 0797f39..f77ba25 100644 --- a/cli/cmd/switchCluster.go +++ b/cli/cmd/switchCluster.go @@ -20,6 +20,7 @@ ksctl switch-context --provider azure --name --region ksctl switch-context --provider ha-civo --name --region ksctl switch-context --provider ha-azure --name --region ksctl switch-context --provider ha-aws --name --region +ksctl switch-context --provider aws --name --region For Storage specific @@ -61,6 +62,9 @@ ksctl switch-context -s external-store-mongodb -p civo -n -r -r `_ - Use to switch between clusters * `ksctl version `_ - Print the version number of ksctl -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster.rst b/gen/docs.rst/ksctl_create-cluster.rst index 1d359f0..a3a6b22 100644 --- a/gen/docs.rst/ksctl_create-cluster.rst +++ b/gen/docs.rst/ksctl_create-cluster.rst @@ -38,4 +38,4 @@ SEE ALSO * `ksctl create-cluster ha-civo `_ - Use to create a self-managed Highly Available cluster on Civo * `ksctl create-cluster local `_ - Use to create a kind cluster -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_azure.rst b/gen/docs.rst/ksctl_create-cluster_azure.rst index 694f94c..5def31b 100644 --- a/gen/docs.rst/ksctl_create-cluster_azure.rst +++ b/gen/docs.rst/ksctl_create-cluster_azure.rst @@ -48,4 +48,4 @@ SEE ALSO * `ksctl create-cluster `_ - Use to create a cluster -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_civo.rst b/gen/docs.rst/ksctl_create-cluster_civo.rst index 5ac39df..e102b0c 100644 --- a/gen/docs.rst/ksctl_create-cluster_civo.rst +++ b/gen/docs.rst/ksctl_create-cluster_civo.rst @@ -48,4 +48,4 @@ SEE ALSO * `ksctl create-cluster `_ - Use to create a cluster -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_ha-aws.rst b/gen/docs.rst/ksctl_create-cluster_ha-aws.rst index b38f223..ad4fd8c 100644 --- a/gen/docs.rst/ksctl_create-cluster_ha-aws.rst +++ b/gen/docs.rst/ksctl_create-cluster_ha-aws.rst @@ -54,4 +54,4 @@ SEE ALSO * `ksctl create-cluster `_ - Use to create a cluster * `ksctl create-cluster ha-aws add-nodes `_ - Use to add more worker nodes in self-managed Highly-Available cluster on Aws -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_ha-aws_add-nodes.rst b/gen/docs.rst/ksctl_create-cluster_ha-aws_add-nodes.rst index c0d6838..8f13a03 100644 --- a/gen/docs.rst/ksctl_create-cluster_ha-aws_add-nodes.rst +++ b/gen/docs.rst/ksctl_create-cluster_ha-aws_add-nodes.rst @@ -45,4 +45,4 @@ SEE ALSO * `ksctl create-cluster ha-aws `_ - Use to create a self-managed Highly Available cluster on AWS -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_ha-azure.rst b/gen/docs.rst/ksctl_create-cluster_ha-azure.rst index 144e849..dcdb545 100644 --- a/gen/docs.rst/ksctl_create-cluster_ha-azure.rst +++ b/gen/docs.rst/ksctl_create-cluster_ha-azure.rst @@ -55,4 +55,4 @@ SEE ALSO * `ksctl create-cluster `_ - Use to create a cluster * `ksctl create-cluster ha-azure add-nodes `_ - Use to add more worker nodes in self-managed Highly-Available cluster on Azure -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_ha-azure_add-nodes.rst b/gen/docs.rst/ksctl_create-cluster_ha-azure_add-nodes.rst index 84d37e8..ed3cd50 100644 --- a/gen/docs.rst/ksctl_create-cluster_ha-azure_add-nodes.rst +++ b/gen/docs.rst/ksctl_create-cluster_ha-azure_add-nodes.rst @@ -46,4 +46,4 @@ SEE ALSO * `ksctl create-cluster ha-azure `_ - Use to create a self-managed Highly-Available cluster on Azure -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_ha-civo.rst b/gen/docs.rst/ksctl_create-cluster_ha-civo.rst index cdf8396..8654aff 100644 --- a/gen/docs.rst/ksctl_create-cluster_ha-civo.rst +++ b/gen/docs.rst/ksctl_create-cluster_ha-civo.rst @@ -55,4 +55,4 @@ SEE ALSO * `ksctl create-cluster `_ - Use to create a cluster * `ksctl create-cluster ha-civo add-nodes `_ - Use to add more worker nodes in self-managed Highly-Available cluster on Civo -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_ha-civo_add-nodes.rst b/gen/docs.rst/ksctl_create-cluster_ha-civo_add-nodes.rst index cfac475..4dda362 100644 --- a/gen/docs.rst/ksctl_create-cluster_ha-civo_add-nodes.rst +++ b/gen/docs.rst/ksctl_create-cluster_ha-civo_add-nodes.rst @@ -46,4 +46,4 @@ SEE ALSO * `ksctl create-cluster ha-civo `_ - Use to create a self-managed Highly Available cluster on Civo -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_create-cluster_local.rst b/gen/docs.rst/ksctl_create-cluster_local.rst index fb9f943..ff9f6f8 100644 --- a/gen/docs.rst/ksctl_create-cluster_local.rst +++ b/gen/docs.rst/ksctl_create-cluster_local.rst @@ -46,4 +46,4 @@ SEE ALSO * `ksctl create-cluster `_ - Use to create a cluster -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_cred.rst b/gen/docs.rst/ksctl_cred.rst index 2ec579a..1529639 100644 --- a/gen/docs.rst/ksctl_cred.rst +++ b/gen/docs.rst/ksctl_cred.rst @@ -29,4 +29,4 @@ SEE ALSO * `ksctl `_ - CLI tool for managing multiple K8s clusters -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster.rst b/gen/docs.rst/ksctl_delete-cluster.rst index e892f26..c807277 100644 --- a/gen/docs.rst/ksctl_delete-cluster.rst +++ b/gen/docs.rst/ksctl_delete-cluster.rst @@ -38,4 +38,4 @@ SEE ALSO * `ksctl delete-cluster ha-civo `_ - Use to delete a self-managed Highly Available cluster on Civo * `ksctl delete-cluster local `_ - Use to delete a kind cluster -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_azure.rst b/gen/docs.rst/ksctl_delete-cluster_azure.rst index 6a23b4b..59f4034 100644 --- a/gen/docs.rst/ksctl_delete-cluster_azure.rst +++ b/gen/docs.rst/ksctl_delete-cluster_azure.rst @@ -42,4 +42,4 @@ SEE ALSO * `ksctl delete-cluster `_ - Use to delete a cluster -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_civo.rst b/gen/docs.rst/ksctl_delete-cluster_civo.rst index 8961bfd..dd821de 100644 --- a/gen/docs.rst/ksctl_delete-cluster_civo.rst +++ b/gen/docs.rst/ksctl_delete-cluster_civo.rst @@ -42,4 +42,4 @@ SEE ALSO * `ksctl delete-cluster `_ - Use to delete a cluster -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_ha-aws.rst b/gen/docs.rst/ksctl_delete-cluster_ha-aws.rst index df665c0..874c09a 100644 --- a/gen/docs.rst/ksctl_delete-cluster_ha-aws.rst +++ b/gen/docs.rst/ksctl_delete-cluster_ha-aws.rst @@ -43,4 +43,4 @@ SEE ALSO * `ksctl delete-cluster `_ - Use to delete a cluster * `ksctl delete-cluster ha-aws del-nodes `_ - Use to remove worker nodes in self-managed Highly-Available cluster on Aws -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_ha-aws_del-nodes.rst b/gen/docs.rst/ksctl_delete-cluster_ha-aws_del-nodes.rst index 91abdc6..c489095 100644 --- a/gen/docs.rst/ksctl_delete-cluster_ha-aws_del-nodes.rst +++ b/gen/docs.rst/ksctl_delete-cluster_ha-aws_del-nodes.rst @@ -43,4 +43,4 @@ SEE ALSO * `ksctl delete-cluster ha-aws `_ - Use to delete a self-managed Highly Available cluster on AWS -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_ha-azure.rst b/gen/docs.rst/ksctl_delete-cluster_ha-azure.rst index 71dd3c7..b2505b6 100644 --- a/gen/docs.rst/ksctl_delete-cluster_ha-azure.rst +++ b/gen/docs.rst/ksctl_delete-cluster_ha-azure.rst @@ -43,4 +43,4 @@ SEE ALSO * `ksctl delete-cluster `_ - Use to delete a cluster * `ksctl delete-cluster ha-azure del-nodes `_ - Use to remove worker nodes in self-managed Highly-Available cluster on Azure -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_ha-azure_del-nodes.rst b/gen/docs.rst/ksctl_delete-cluster_ha-azure_del-nodes.rst index d4d2c72..1588d57 100644 --- a/gen/docs.rst/ksctl_delete-cluster_ha-azure_del-nodes.rst +++ b/gen/docs.rst/ksctl_delete-cluster_ha-azure_del-nodes.rst @@ -44,4 +44,4 @@ SEE ALSO * `ksctl delete-cluster ha-azure `_ - Use to delete a self-managed Highly Available cluster on Azure -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_ha-civo.rst b/gen/docs.rst/ksctl_delete-cluster_ha-civo.rst index 7c96f04..9f73ef2 100644 --- a/gen/docs.rst/ksctl_delete-cluster_ha-civo.rst +++ b/gen/docs.rst/ksctl_delete-cluster_ha-civo.rst @@ -43,4 +43,4 @@ SEE ALSO * `ksctl delete-cluster `_ - Use to delete a cluster * `ksctl delete-cluster ha-civo del-nodes `_ - Use to remove worker nodes in self-managed Highly-Available cluster on Civo -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_ha-civo_del-nodes.rst b/gen/docs.rst/ksctl_delete-cluster_ha-civo_del-nodes.rst index a6ff2f3..abe88c6 100644 --- a/gen/docs.rst/ksctl_delete-cluster_ha-civo_del-nodes.rst +++ b/gen/docs.rst/ksctl_delete-cluster_ha-civo_del-nodes.rst @@ -44,4 +44,4 @@ SEE ALSO * `ksctl delete-cluster ha-civo `_ - Use to delete a self-managed Highly Available cluster on Civo -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_delete-cluster_local.rst b/gen/docs.rst/ksctl_delete-cluster_local.rst index f5bac91..43a5394 100644 --- a/gen/docs.rst/ksctl_delete-cluster_local.rst +++ b/gen/docs.rst/ksctl_delete-cluster_local.rst @@ -41,4 +41,4 @@ SEE ALSO * `ksctl delete-cluster `_ - Use to delete a cluster -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_get-clusters.rst b/gen/docs.rst/ksctl_get-clusters.rst index 6bbf29d..7e506bf 100644 --- a/gen/docs.rst/ksctl_get-clusters.rst +++ b/gen/docs.rst/ksctl_get-clusters.rst @@ -42,4 +42,4 @@ SEE ALSO * `ksctl `_ - CLI tool for managing multiple K8s clusters -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_info-cluster.rst b/gen/docs.rst/ksctl_info-cluster.rst index 7a5ab40..1e6f94e 100644 --- a/gen/docs.rst/ksctl_info-cluster.rst +++ b/gen/docs.rst/ksctl_info-cluster.rst @@ -43,4 +43,4 @@ SEE ALSO * `ksctl `_ - CLI tool for managing multiple K8s clusters -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_switch-cluster.rst b/gen/docs.rst/ksctl_switch-cluster.rst index ef497ba..82b4917 100644 --- a/gen/docs.rst/ksctl_switch-cluster.rst +++ b/gen/docs.rst/ksctl_switch-cluster.rst @@ -52,4 +52,4 @@ SEE ALSO * `ksctl `_ - CLI tool for managing multiple K8s clusters -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/gen/docs.rst/ksctl_version.rst b/gen/docs.rst/ksctl_version.rst index 52b7894..7c8b0fb 100644 --- a/gen/docs.rst/ksctl_version.rst +++ b/gen/docs.rst/ksctl_version.rst @@ -27,4 +27,4 @@ SEE ALSO * `ksctl `_ - CLI tool for managing multiple K8s clusters -*Auto generated by spf13/cobra on 21-Jun-2024* +*Auto generated by spf13/cobra on 1-Aug-2024* diff --git a/go.mod b/go.mod index bb71d0b..de69120 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,13 @@ module github.com/ksctl/cli -go 1.22.0 +go 1.22.2 + +toolchain go1.22.5 require ( github.com/Delta456/box-cli-maker/v2 v2.3.0 github.com/fatih/color v1.17.0 - github.com/gookit/goutil v0.6.15 - github.com/ksctl/ksctl v1.2.4 + github.com/ksctl/ksctl v1.2.5 github.com/rodaine/table v1.2.0 github.com/spf13/cobra v1.8.0 ) @@ -32,20 +33,22 @@ require ( github.com/Microsoft/hcsshim v0.12.3 // indirect github.com/alessio/shellescape v1.4.2 // indirect github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect - github.com/aws/aws-sdk-go-v2 v1.27.0 // indirect - github.com/aws/aws-sdk-go-v2/config v1.27.16 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.16 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.3 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.7 // indirect + github.com/aws/aws-sdk-go-v2 v1.30.3 // indirect + github.com/aws/aws-sdk-go-v2/config v1.27.27 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.27 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect github.com/aws/aws-sdk-go-v2/service/ec2 v1.162.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.9 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.20.9 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.3 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.28.10 // indirect - github.com/aws/smithy-go v1.20.2 // indirect + github.com/aws/aws-sdk-go-v2/service/eks v1.42.5 // indirect + github.com/aws/aws-sdk-go-v2/service/iam v1.32.6 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect + github.com/aws/smithy-go v1.20.3 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect diff --git a/go.sum b/go.sum index ec4f432..8ba57ac 100644 --- a/go.sum +++ b/go.sum @@ -59,34 +59,38 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPd github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= -github.com/aws/aws-sdk-go-v2 v1.27.0 h1:7bZWKoXhzI+mMR/HjdMx8ZCC5+6fY0lS5tr0bbgiLlo= -github.com/aws/aws-sdk-go-v2 v1.27.0/go.mod h1:ffIFB97e2yNsv4aTSGkqtHnppsIJzw7G7BReUZ3jCXM= -github.com/aws/aws-sdk-go-v2/config v1.27.16 h1:knpCuH7laFVGYTNd99Ns5t+8PuRjDn4HnnZK48csipM= -github.com/aws/aws-sdk-go-v2/config v1.27.16/go.mod h1:vutqgRhDUktwSge3hrC3nkuirzkJ4E/mLj5GvI0BQas= -github.com/aws/aws-sdk-go-v2/credentials v1.17.16 h1:7d2QxY83uYl0l58ceyiSpxg9bSbStqBC6BeEeHEchwo= -github.com/aws/aws-sdk-go-v2/credentials v1.17.16/go.mod h1:Ae6li/6Yc6eMzysRL2BXlPYvnrLLBg3D11/AmOjw50k= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.3 h1:dQLK4TjtnlRGb0czOht2CevZ5l6RSyRWAnKeGd7VAFE= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.3/go.mod h1:TL79f2P6+8Q7dTsILpiVST+AL9lkF6PPGI167Ny0Cjw= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.7 h1:lf/8VTF2cM+N4SLzaYJERKEWAXq8MOMpZfU6wEPWsPk= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.7/go.mod h1:4SjkU7QiqK2M9oozyMzfZ/23LmUY+h3oFqhdeP5OMiI= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.7 h1:4OYVp0705xu8yjdyoWix0r9wPIRXnIzzOoUpQVHIJ/g= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.7/go.mod h1:vd7ESTEvI76T2Na050gODNmNU7+OyKrIKroYTu4ABiI= +github.com/aws/aws-sdk-go-v2 v1.30.3 h1:jUeBtG0Ih+ZIFH0F4UkmL9w3cSpaMv9tYYDbzILP8dY= +github.com/aws/aws-sdk-go-v2 v1.30.3/go.mod h1:nIQjQVp5sfpQcTc9mPSr1B0PaWK5ByX9MOoDadSN4lc= +github.com/aws/aws-sdk-go-v2/config v1.27.27 h1:HdqgGt1OAP0HkEDDShEl0oSYa9ZZBSOmKpdpsDMdO90= +github.com/aws/aws-sdk-go-v2/config v1.27.27/go.mod h1:MVYamCg76dFNINkZFu4n4RjDixhVr51HLj4ErWzrVwg= +github.com/aws/aws-sdk-go-v2/credentials v1.17.27 h1:2raNba6gr2IfA0eqqiP2XiQ0UVOpGPgDSi0I9iAP+UI= +github.com/aws/aws-sdk-go-v2/credentials v1.17.27/go.mod h1:gniiwbGahQByxan6YjQUMcW4Aov6bLC3m+evgcoN4r4= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 h1:KreluoV8FZDEtI6Co2xuNk/UqI9iwMrOx/87PBNIKqw= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11/go.mod h1:SeSUYBLsMYFoRvHE0Tjvn7kbxaUhl75CJi1sbfhMxkU= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 h1:SoNJ4RlFEQEbtDcCEt+QG56MY4fm4W8rYirAmq+/DdU= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15/go.mod h1:U9ke74k1n2bf+RIgoX1SXFed1HLs51OgUSs+Ph0KJP8= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 h1:C6WHdGnTDIYETAm5iErQUiVNsclNx9qbJVPIt03B6bI= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15/go.mod h1:ZQLZqhcu+JhSrA9/NXRm8SkDvsycE+JkV3WGY41e+IM= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= github.com/aws/aws-sdk-go-v2/service/ec2 v1.162.0 h1:A1YMX7uMzXhfIEL9zc5049oQgSaH4ZeXx/sOth0dk/I= github.com/aws/aws-sdk-go-v2/service/ec2 v1.162.0/go.mod h1:iJ2sQeUTkjNp3nL7kE/Bav0xXYhtiRCRP5ZXk4jFhCQ= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 h1:Ji0DY1xUsUr3I8cHps0G+XM3WWU16lP6yG8qu1GAZAs= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2/go.mod h1:5CsjAbs3NlGQyZNFACh+zztPDI7fU6eW9QsxjfnuBKg= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.9 h1:Wx0rlZoEJR7JwlSZcHnEa7CNjrSIyVxMFWGAaXy4fJY= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.9/go.mod h1:aVMHdE0aHO3v+f/iw01fmXV/5DbfQ3Bi9nN7nd9bE9Y= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.9 h1:aD7AGQhvPuAxlSUfo0CWU7s6FpkbyykMhGYMvlqTjVs= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.9/go.mod h1:c1qtZUWtygI6ZdvKppzCSXsDOq5I4luJPZ0Ud3juFCA= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.3 h1:Pav5q3cA260Zqez42T9UhIlsd9QeypszRPwC9LdSSsQ= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.3/go.mod h1:9lmoVDVLz/yUZwLaQ676TK02fhCu4+PgRSmMaKR1ozk= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.10 h1:69tpbPED7jKPyzMcrwSvhWcJ9bPnZsZs18NT40JwM0g= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.10/go.mod h1:0Aqn1MnEuitqfsCNyKsdKLhDUOr4txD/g19EfiUqgws= -github.com/aws/smithy-go v1.20.2 h1:tbp628ireGtzcHDDmLT/6ADHidqnwgF57XOXZe6tp4Q= -github.com/aws/smithy-go v1.20.2/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= +github.com/aws/aws-sdk-go-v2/service/eks v1.42.5 h1:wQUW0CJ7C40gYGX7IYqG/3BbePub4Zj8ySnFnjFaWB8= +github.com/aws/aws-sdk-go-v2/service/eks v1.42.5/go.mod h1:+DcodqLze5C9zSc9lobCR25JDgE+YME4AJvTHeZoeXo= +github.com/aws/aws-sdk-go-v2/service/iam v1.32.6 h1:NRlKKQ/BPHPqsuN2Hy6v4WA8/bsRTP0j8/BFPBC5+SU= +github.com/aws/aws-sdk-go-v2/service/iam v1.32.6/go.mod h1:S+s7/UH0UIqRX4GyXvZihMJNR9nqlB0kxO4NKSFeRak= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 h1:dT3MqvGhSoaIhRseqw2I0yH81l7wiR2vjs57O51EAm8= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3/go.mod h1:GlAeCkHwugxdHaueRr4nhPuY+WW+gR8UjlcqzPr1SPI= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 h1:HGErhhrxZlQ044RiM+WdoZxp0p+EGM62y3L6pwA4olE= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17/go.mod h1:RkZEx4l0EHYDJpWppMJ3nD9wZJAa8/0lq9aVC+r2UII= +github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 h1:BXx0ZIxvrJdSgSvKTZ+yRBeSqqgPM89VPlulEcl37tM= +github.com/aws/aws-sdk-go-v2/service/sso v1.22.4/go.mod h1:ooyCOXjvJEsUw7x+ZDHeISPMhtwI3ZCB7ggFMcFfWLU= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 h1:yiwVzJW2ZxZTurVbYWA7QOrAaCYQR72t0wrSBfoesUE= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4/go.mod h1:0oxfLkpz3rQ/CHlx5hB7H69YUpFiI1tql6Q6Ne+1bCw= +github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 h1:ZsDKRLXGWHk8WdtyYMoGNO7bTudrvuKpDKgMVRlepGE= +github.com/aws/aws-sdk-go-v2/service/sts v1.30.3/go.mod h1:zwySh8fpFyXp9yOr/KVzxOl8SRqgf/IDw5aUt9UKFcQ= +github.com/aws/smithy-go v1.20.3 h1:ryHwveWzPV5BIof6fyDvor6V3iUL7nTfiTKXHiW05nE= +github.com/aws/smithy-go v1.20.3/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -294,10 +298,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/ksctl/ksctl v1.2.3 h1:sN/tGI43KmDXcEG2BsV3Q92bxctzetTEKKSvubj+/fk= -github.com/ksctl/ksctl v1.2.3/go.mod h1:B8L/VmlwV8BNeRe4YV6LrP9nKFc5YibOAWBBmoheM8o= -github.com/ksctl/ksctl v1.2.4 h1:QJCfj6GHe+vDhEXqFtEtx6PotuLeh54Y+KGB0Vug3XQ= -github.com/ksctl/ksctl v1.2.4/go.mod h1:B8L/VmlwV8BNeRe4YV6LrP9nKFc5YibOAWBBmoheM8o= +github.com/ksctl/ksctl v1.2.5 h1:3hfPOJ5C8Pbor+qQ33MF1/Z01q+g8mgUg4Mbtt905ps= +github.com/ksctl/ksctl v1.2.5/go.mod h1:keLgPWFgOsXPLoanb7rSn0Nxo17PmXvv+6wBaojd3Bs= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq6+3iTQz8KNCLtVX6idSoTLdUw=