From 6a3801298a276022f1093ea712c620cec72a6f33 Mon Sep 17 00:00:00 2001 From: Peter Rifel Date: Fri, 27 Aug 2021 12:59:41 -0500 Subject: [PATCH] Add release note --- docs/releases/1.22-NOTES.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/releases/1.22-NOTES.md b/docs/releases/1.22-NOTES.md index 0935756b41..6551da24d3 100644 --- a/docs/releases/1.22-NOTES.md +++ b/docs/releases/1.22-NOTES.md @@ -76,6 +76,18 @@ Currently this is only available using the AWS cloud provider. If you applied the plan without first orphaning all of these objects, fix the cluster by re-running `kops update cluster --target terraform`. +* Terraform users of clusters with names beginning with digits will need to move resources prior to upgrading to kOps 1.22. Some of the following commands will need to be run depending on the particular cluster configuration. Confirm the Terraform plan doesn't destroy any of these resources before running `terraform apply`. + ```bash + # View the existing terraform resource names for the exact value to use + HYPHENATED_CLUSTER_NAME=123-cluster-example-com + terraform state mv "aws_iam_openid_connect_provider.${HYPHENATED_CLUSTER_NAME}" "aws_iam_openid_connect_provider.prefix_${HYPHENATED_CLUSTER_NAME}" + terraform state mv "aws_internet_gateway.${HYPHENATED_CLUSTER_NAME}" "aws_internet_gateway.prefix_${HYPHENATED_CLUSTER_NAME}" + terraform state mv "aws_route_table.${HYPHENATED_CLUSTER_NAME}" "aws_route_table.prefix_${HYPHENATED_CLUSTER_NAME}" + terraform state mv "aws_vpc.${HYPHENATED_CLUSTER_NAME}" "aws_vpc.prefix_${HYPHENATED_CLUSTER_NAME}" + terraform state mv "aws_vpc_dhcp_options.${HYPHENATED_CLUSTER_NAME}" "aws_vpc_dhcp_options.prefix_${HYPHENATED_CLUSTER_NAME}" + terraform state mv "aws_vpc_dhcp_options_association.${HYPHENATED_CLUSTER_NAME}" "aws_vpc_dhcp_options_association.prefix_${HYPHENATED_CLUSTER_NAME}" + ``` + # Deprecations * Support for Kubernetes version 1.17 is deprecated and will be removed in kOps 1.23.