diff --git a/clusterctl/README.md b/clusterctl/README.md index 7c6a3e7a298b..49cb29dde888 100644 --- a/clusterctl/README.md +++ b/clusterctl/README.md @@ -8,12 +8,17 @@ Read the [experience doc here](https://docs.google.com/document/d/1-sYb3EdkRga49 ### Prerequisites -Follow the steps listed at [CONTRIBUTING.md](https://github.com/kubernetes/kube-deploy/blob/master/cluster-api/clusterctl/CONTRIBUTING.md) to: +Follow the steps listed at [CONTRIBUTING.md](https://github.com/kubernetes-sigs/cluster-api/blob/master/cluster-api/clusterctl/CONTRIBUTING.md) to: -1. Build the `clusterctl` tool -3. Create a `machines.yaml` file configured for your cluster. See the provided template for an example. +1. Build the `clusterctl` tool -### Limitation +``` +go build +``` + +2. Create a `machines.yaml` file configured for your cluster. See the provided template for an example. + +### Limitations ### Creating a cluster @@ -31,8 +36,6 @@ MachineSet controller, Machine Setup ConfigMap etc. Note that this is not a new object. There will be defaults running. This will make the tool easily pluggage (change the controller spec) instead of changing the tool or mucking with flags. -1. Create a cluster: `./clusterctl create cluster -c cluster.yaml -m machines.yaml -e extras.yaml` - ### Interacting with your cluster Once you have created a cluster, you can interact with the cluster and machine diff --git a/clusterctl/cmd/create.go b/clusterctl/cmd/create.go index bcc1ee93a8b8..40d69da33e03 100644 --- a/clusterctl/cmd/create.go +++ b/clusterctl/cmd/create.go @@ -19,7 +19,6 @@ package cmd import ( "os" - //"fmt" "github.com/golang/glog" "github.com/spf13/cobra" "sigs.k8s.io/cluster-api/errors" @@ -63,9 +62,5 @@ func RunCreate(co *CreateOptions) error { return errors.NotImplementedError } func init() { - createCmd.Flags().StringVarP(&co.Cluster, "cluster", "c", "", "cluster yaml file") - createCmd.Flags().StringVarP(&co.Machine, "machines", "m", "", "machine yaml file") - createCmd.Flags().StringVarP(&co.Extras, "extras", "e", "", "extras yaml file") - RootCmd.AddCommand(createCmd) } diff --git a/clusterctl/cmd/delete.go b/clusterctl/cmd/delete.go index be3fd91f0e43..cb71c0316228 100644 --- a/clusterctl/cmd/delete.go +++ b/clusterctl/cmd/delete.go @@ -50,7 +50,5 @@ func RunDelete() error { } func init() { - deleteCmd.Flags().StringVarP(&do.ClusterName, "cluster-name", "n", "", "cluster name") - RootCmd.AddCommand(deleteCmd) } diff --git a/clusterctl/cmd/register.go b/clusterctl/cmd/register.go index 59c4661b321a..f2357aa2a5ab 100644 --- a/clusterctl/cmd/register.go +++ b/clusterctl/cmd/register.go @@ -51,7 +51,5 @@ func RunRegister(co *RegisterOptions) error { } func init() { - registerCmd.Flags().StringVarP(&ro.RegistryEndpoint, "registry-endpoint", "r", "", "registry endpoint") - RootCmd.AddCommand(registerCmd) } diff --git a/clusterctl/cmd/root.go b/clusterctl/cmd/root.go index 72c6d30ae501..9001a0b48966 100644 --- a/clusterctl/cmd/root.go +++ b/clusterctl/cmd/root.go @@ -79,7 +79,6 @@ func parseMachinesYaml(file string) ([]*clusterv1.Machine, error) { } func init() { - RootCmd.PersistentFlags().StringVarP(&kubeConfig, "kubeconfig", "k", "", "location for the kubernetes config file. If not provided, $HOME/.kube/config is used") flag.CommandLine.Parse([]string{}) logs.InitLogs() }