Skip to content

Commit

Permalink
Add an optional provider-components flag to `clusterctl delete cluste…
Browse files Browse the repository at this point in the history
…r` (#362)
  • Loading branch information
spew authored and k8s-ci-robot committed Jun 19, 2018
1 parent 9d967f1 commit cbc610d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion clusterctl/cmd/delete_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import (
)

type DeleteOptions struct {
ClusterName string
ClusterName string
ProviderComponents string
}

var do = &DeleteOptions{}
Expand All @@ -43,6 +44,7 @@ var deleteClusterCmd = &cobra.Command{
}

func init() {
deleteClusterCmd.Flags().StringVarP(&do.ProviderComponents, "provider-components", "p", "", "A yaml file containing cluster api provider controllers and supporting objects, if empty the value is loaded from the cluster's configuration store.")
deleteCmd.AddCommand(deleteClusterCmd)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Usage:
clusterctl delete cluster [flags]

Flags:
-h, --help help for cluster
-h, --help help for cluster
-p, --provider-components string A yaml file containing cluster api provider controllers and supporting objects, if empty the value is loaded from the cluster's configuration store.

Global Flags:
--alsologtostderr log to standard error as well as files
Expand Down
3 changes: 2 additions & 1 deletion clusterctl/testdata/delete-cluster-no-args.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Usage:
clusterctl delete cluster [flags]

Flags:
-h, --help help for cluster
-h, --help help for cluster
-p, --provider-components string A yaml file containing cluster api provider controllers and supporting objects, if empty the value is loaded from the cluster's configuration store.

Global Flags:
--alsologtostderr log to standard error as well as files
Expand Down

0 comments on commit cbc610d

Please sign in to comment.