diff --git a/cmd/scw/testdata/test-all-usage-k8s-cluster-delete-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-k8s-cluster-delete-usage.stderr.golden index 42049f8d15..7cf0a3d104 100644 --- a/cmd/scw/testdata/test-all-usage-k8s-cluster-delete-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-k8s-cluster-delete-usage.stderr.golden @@ -8,8 +8,9 @@ EXAMPLES: scw k8s cluster delete 11111111-1111-1111-111111111111 ARGS: - cluster-id The ID of the cluster to delete - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) + cluster-id The ID of the cluster to delete + [with-additional-resources] Set true if you want to delete all volumes (including retain volume type) and loadbalancers whose name start with cluster ID + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) FLAGS: -h, --help help for delete diff --git a/cmd/scw/testdata/test-all-usage-k8s-version-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-k8s-version-usage.stderr.golden index 7cafb4e99e..a4fade028d 100644 --- a/cmd/scw/testdata/test-all-usage-k8s-version-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-k8s-version-usage.stderr.golden @@ -1,4 +1,4 @@ -A version is a vanilla Kubernetes version like `x.y.z`. +A version is a vanilla Kubernetes version like `x.y.z`. It is composed of a major version x, a minor version y and a patch version z. Scaleway's managed Kubernetes, Kapsule, will at least support the last patch version for the last three minor release. diff --git a/internal/namespaces/k8s/v1/k8s_cli.go b/internal/namespaces/k8s/v1/k8s_cli.go index 66900b521b..a881b7b515 100644 --- a/internal/namespaces/k8s/v1/k8s_cli.go +++ b/internal/namespaces/k8s/v1/k8s_cli.go @@ -93,7 +93,7 @@ Please note that Kubernetes nodes cannot be accessed with ssh. func k8sVersion() *core.Command { return &core.Command{ Short: `A version is a Kubernetes version`, - Long: `A version is a vanilla Kubernetes version like ` + "`" + `x.y.z` + "`" + `. + Long: `A version is a vanilla Kubernetes version like ` + "`" + `x.y.z` + "`" + `. It is composed of a major version x, a minor version y and a patch version z. Scaleway's managed Kubernetes, Kapsule, will at least support the last patch version for the last three minor release. @@ -625,6 +625,12 @@ func k8sClusterDelete() *core.Command { Required: true, Positional: true, }, + { + Name: "with-additional-resources", + Short: `Set true if you want to delete all volumes (including retain volume type) and loadbalancers whose name start with cluster ID`, + Required: false, + Positional: false, + }, core.RegionArgSpec(scw.RegionFrPar), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {