kops/tests/integration/update_cluster
Peter Rifel e0cebf30e5 Update terraform resource names to be 0.12 compatible.
According to the upgrade guide [0] resource names cannot start with digits.
Currently both routes and VPC CIDR associations start with digits, so this adds prefixes to them so that they are valid resource identifiers in 0.12.

This is a significant change because on its own, terraform will destroy and recreate the route which impact the cluster networking.
To avoid this, existing clusters this will require moving the resources within the terraform state prior to the next `apply`.

```
kops update cluster --target terraform --out ./
terraform state mv aws_route.0-0-0-0--0 aws_route.route-0-0-0-0--0 # repeat for all aws_route resources
terraform plan
terraform apply
```

The exact terraform state command may vary depending on how Kops' terraform output is used.
See the command documentation [1] for more details.
Always run a terraform plan first to ensure the `aws_route` and `aws_vpc_ipv4_cidr_block_association` resources are not getting recreated.

Due to the potential impact, this notice should be very prominant in the Kops release notes

[0] https://www.terraform.io/upgrade-guides/0-12.html
[1] https://www.terraform.io/docs/commands/state/mv.html
2020-01-17 07:51:39 -06:00
..
additional_cidr Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
additional_user-data Merge pull request #8269 from justinsb/ops_kops_writeable 2020-01-06 01:33:34 -08:00
api_elb_cross_zone Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
bastionadditional_user-data Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
complex Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
containerd-cloudformation Merge pull request #8269 from justinsb/ops_kops_writeable 2020-01-06 01:33:34 -08:00
existing_iam Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
existing_iam_cloudformation Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
existing_sg Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
externallb Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
ha Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
ha_gce setting google provider to at least 3.0.0 2019-12-14 19:35:32 +01:00
lifecycle_phases Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
minimal Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
minimal-141 Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
minimal-cloudformation Merge pull request #8269 from justinsb/ops_kops_writeable 2020-01-06 01:33:34 -08:00
mixed_instances Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
mixed_instances_spot Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
nosshkey Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
nosshkey-cloudformation Add ability to specify no ssh key by setting sshKeyName to empty 2020-01-15 15:24:32 -05:00
private-shared-subnet run hack/update-expected.sh: we now consistenly output an empty user-data for bastion node 2020-01-13 15:28:20 -05:00
privatecalico Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
privatecanal Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
privatedns1 Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
privatedns2 Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
privateflannel Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
privatekopeio Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
privateweave Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
restrict_access Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
shared_subnet Update tests to use k8s >= 1.14 2019-09-14 13:58:50 -04:00
shared_vpc Update terraform resource names to be 0.12 compatible. 2020-01-17 07:51:39 -06:00
unmanaged run hack/update-expected.sh: we now consistenly output an empty user-data for bastion node 2020-01-13 15:28:20 -05:00
BUILD.bazel Fix update cluster integration test for bazel 2017-10-03 20:51:00 -04:00