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

Add terraform state validation for Install and Upgrade operations in TK8 #99

Closed ishantanu closed 5 years ago

ishantanu commented 5 years ago

Describe the bug Currently, there is not much difference between Install and Upgrade functionality. Install with modified configuration does an Upgrade as well.

To Reproduce Steps to reproduce the behavior:

  1. Create a cluster with tk8 cluster install rke/aws.
  2. Modify config.yaml and run tk8 cluster install rke/aws.
  3. The above operation should be only an Upgrade and not Install.

Expected behavior Install should only set up a cluster and infra if there is no current cluster with the same name.

Upgrade should only work if there is an existing cluster.

ishantanu commented 5 years ago

This has been fixed.