Skip to content

Commit

Permalink
Merge pull request #13028 from rifelpet/ipv6-tf
Browse files Browse the repository at this point in the history
Extend terraform support for IPv6
  • Loading branch information
k8s-ci-robot authored Jan 7, 2022
2 parents af7e6a4 + e6305aa commit 4ffc83d
Show file tree
Hide file tree
Showing 54 changed files with 110 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/complex/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/compress/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/digit/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/existing_sg/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/externallb/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/ha/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/irsa/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/karpenter/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/many-addons/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
8 changes: 5 additions & 3 deletions tests/integration/update_cluster/minimal-1.24/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,10 @@ resource "aws_security_group_rule" "from-nodes-minimal-example-com-ingress-udp-1
}

resource "aws_subnet" "us-test-1a-minimal-example-com" {
availability_zone = "us-test-1a"
cidr_block = "172.20.32.0/19"
availability_zone = "us-test-1a"
cidr_block = "172.20.32.0/19"
enable_resource_name_dns_a_record_on_launch = true
private_dns_hostname_type_on_launch = "resource-name"
tags = {
"KubernetesCluster" = "minimal.example.com"
"Name" = "us-test-1a.minimal.example.com"
Expand Down Expand Up @@ -885,7 +887,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/minimal-gp3/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
38 changes: 25 additions & 13 deletions tests/integration/update_cluster/minimal-ipv6-private/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1072,9 +1072,12 @@ resource "aws_security_group_rule" "icmpv6-pmtu-api-elb-__--0" {
}

resource "aws_subnet" "us-test-1a-minimal-ipv6-example-com" {
availability_zone = "us-test-1a"
cidr_block = "172.20.32.0/19"
ipv6_cidr_block = "2001:db8:0:111::/64"
availability_zone = "us-test-1a"
cidr_block = "172.20.32.0/19"
enable_resource_name_dns_a_record_on_launch = true
enable_resource_name_dns_aaaa_record_on_launch = true
ipv6_cidr_block = "2001:db8:0:111::/64"
private_dns_hostname_type_on_launch = "resource-name"
tags = {
"KubernetesCluster" = "minimal-ipv6.example.com"
"Name" = "us-test-1a.minimal-ipv6.example.com"
Expand All @@ -1086,9 +1089,12 @@ resource "aws_subnet" "us-test-1a-minimal-ipv6-example-com" {
}

resource "aws_subnet" "us-test-1b-minimal-ipv6-example-com" {
availability_zone = "us-test-1b"
cidr_block = "172.20.64.0/19"
ipv6_cidr_block = "2001:db8:0:112::/64"
availability_zone = "us-test-1b"
cidr_block = "172.20.64.0/19"
enable_resource_name_dns_a_record_on_launch = true
enable_resource_name_dns_aaaa_record_on_launch = true
ipv6_cidr_block = "2001:db8:0:112::/64"
private_dns_hostname_type_on_launch = "resource-name"
tags = {
"KubernetesCluster" = "minimal-ipv6.example.com"
"Name" = "us-test-1b.minimal-ipv6.example.com"
Expand All @@ -1100,9 +1106,12 @@ resource "aws_subnet" "us-test-1b-minimal-ipv6-example-com" {
}

resource "aws_subnet" "utility-us-test-1a-minimal-ipv6-example-com" {
availability_zone = "us-test-1a"
cidr_block = "172.20.0.0/22"
ipv6_cidr_block = "2001:db8:0:113::/64"
availability_zone = "us-test-1a"
cidr_block = "172.20.0.0/22"
enable_resource_name_dns_a_record_on_launch = true
enable_resource_name_dns_aaaa_record_on_launch = true
ipv6_cidr_block = "2001:db8:0:113::/64"
private_dns_hostname_type_on_launch = "resource-name"
tags = {
"KubernetesCluster" = "minimal-ipv6.example.com"
"Name" = "utility-us-test-1a.minimal-ipv6.example.com"
Expand All @@ -1114,9 +1123,12 @@ resource "aws_subnet" "utility-us-test-1a-minimal-ipv6-example-com" {
}

resource "aws_subnet" "utility-us-test-1b-minimal-ipv6-example-com" {
availability_zone = "us-test-1b"
cidr_block = "172.20.4.0/22"
ipv6_cidr_block = "2001:db8:0:114::/64"
availability_zone = "us-test-1b"
cidr_block = "172.20.4.0/22"
enable_resource_name_dns_a_record_on_launch = true
enable_resource_name_dns_aaaa_record_on_launch = true
ipv6_cidr_block = "2001:db8:0:114::/64"
private_dns_hostname_type_on_launch = "resource-name"
tags = {
"KubernetesCluster" = "minimal-ipv6.example.com"
"Name" = "utility-us-test-1b.minimal-ipv6.example.com"
Expand Down Expand Up @@ -1160,7 +1172,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/minimal/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
2 changes: 1 addition & 1 deletion tests/integration/update_cluster/nvidia/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ terraform {
aws = {
"configuration_aliases" = [aws.files]
"source" = "hashicorp/aws"
"version" = ">= 3.59.0"
"version" = ">= 3.71.0"
}
}
}
Loading

0 comments on commit 4ffc83d

Please sign in to comment.