kubernauts / tk8

CLI to deploy Kubernetes with RKE, EKS or Kubeadm and deploy additional addons
Apache License 2.0
266 stars 48 forks source link

Remove/Modify auto-generation of config.yaml in empty directory #114

Open ishantanu opened 5 years ago

ishantanu commented 5 years ago

Describe the bug When tk8 is run in a directory which does not have config.yaml, it tries to auto generate it by saying:

No default config was provided. Generating one for you.

The auto-generated config.yaml is only usable for aws provisioner and not for others.

To Reproduce Steps to reproduce the behavior:

  1. Download tk8 binary in empty folder.
  2. Setup cattle-aws cluster without config.yaml: tk8 cluster install cattle-aws

Expected behavior We have two options in this case:

  1. Instead of auto-generating config.yaml, we should tell the user to create the config.yaml before running the command since we cannot generate multiple configs for multiple provisioners.

  2. Implement the code for mapping between different config.yaml's for different provisioners.