Skip to content

Commit

Permalink
Run hack/update-expected.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed May 14, 2021
1 parent ce1f5d4 commit 0e89f56
Show file tree
Hide file tree
Showing 55 changed files with 847 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupmastersminimalexamplecom"
Expand Down Expand Up @@ -443,6 +444,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupmastersminimalexamplecom"
Expand Down Expand Up @@ -589,6 +591,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupnodesminimalexamplecom"
Expand Down Expand Up @@ -668,6 +671,18 @@
}
}
},
"AWSEC2Route0": {
"Type": "AWS::EC2::Route",
"Properties": {
"RouteTableId": {
"Ref": "AWSEC2RouteTableminimalexamplecom"
},
"DestinationIpv6CidrBlock": "::/0",
"GatewayId": {
"Ref": "AWSEC2InternetGatewayminimalexamplecom"
}
}
},
"AWSEC2Route00000": {
"Type": "AWS::EC2::Route",
"Properties": {
Expand Down Expand Up @@ -955,6 +970,15 @@
]
}
},
"AWSEC2VPCCidrBlockAmazonIPv6": {
"Type": "AWS::EC2::VPCCidrBlock",
"Properties": {
"VpcId": {
"Ref": "AWSEC2VPCminimalexamplecom"
},
"AmazonProvidedIpv6CidrBlock": true
}
},
"AWSEC2VPCDHCPOptionsAssociationminimalexamplecom": {
"Type": "AWS::EC2::VPCDHCPOptionsAssociation",
"Properties": {
Expand Down
15 changes: 12 additions & 3 deletions tests/integration/update_cluster/aws-lb-controller/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
network_interfaces {
associate_public_ip_address = true
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.masters-minimal-example-com.id]
}
tag_specifications {
Expand Down Expand Up @@ -468,6 +469,7 @@ resource "aws_launch_template" "nodes-minimal-example-com" {
network_interfaces {
associate_public_ip_address = true
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.nodes-minimal-example-com.id]
}
tag_specifications {
Expand Down Expand Up @@ -512,6 +514,12 @@ resource "aws_route" "route-0-0-0-0--0" {
route_table_id = aws_route_table.minimal-example-com.id
}

resource "aws_route" "route-__--0" {
destination_ipv6_cidr_block = "::/0"
gateway_id = aws_internet_gateway.minimal-example-com.id
route_table_id = aws_route_table.minimal-example-com.id
}

resource "aws_route_table" "minimal-example-com" {
tags = {
"KubernetesCluster" = "minimal.example.com"
Expand Down Expand Up @@ -671,9 +679,10 @@ resource "aws_subnet" "us-test-1a-minimal-example-com" {
}

resource "aws_vpc" "minimal-example-com" {
cidr_block = "172.20.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
assign_generated_ipv6_cidr_block = true
cidr_block = "172.20.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
"KubernetesCluster" = "minimal.example.com"
"Name" = "minimal.example.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ resource "aws_launch_template" "bastion-bastionuserdata-example-com" {
network_interfaces {
associate_public_ip_address = true
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.bastion-bastionuserdata-example-com.id]
}
tag_specifications {
Expand Down Expand Up @@ -562,6 +563,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-bastionuserdata-exampl
network_interfaces {
associate_public_ip_address = false
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.masters-bastionuserdata-example-com.id]
}
tag_specifications {
Expand Down Expand Up @@ -639,6 +641,7 @@ resource "aws_launch_template" "nodes-bastionuserdata-example-com" {
network_interfaces {
associate_public_ip_address = false
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.nodes-bastionuserdata-example-com.id]
}
tag_specifications {
Expand Down Expand Up @@ -693,6 +696,12 @@ resource "aws_route" "route-0-0-0-0--0" {
route_table_id = aws_route_table.bastionuserdata-example-com.id
}

resource "aws_route" "route-__--0" {
destination_ipv6_cidr_block = "::/0"
gateway_id = aws_internet_gateway.bastionuserdata-example-com.id
route_table_id = aws_route_table.bastionuserdata-example-com.id
}

resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" {
destination_cidr_block = "0.0.0.0/0"
nat_gateway_id = aws_nat_gateway.us-test-1a-bastionuserdata-example-com.id
Expand Down Expand Up @@ -993,9 +1002,10 @@ resource "aws_subnet" "utility-us-test-1a-bastionuserdata-example-com" {
}

resource "aws_vpc" "bastionuserdata-example-com" {
cidr_block = "172.20.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
assign_generated_ipv6_cidr_block = true
cidr_block = "172.20.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
"KubernetesCluster" = "bastionuserdata.example.com"
"Name" = "bastionuserdata.example.com"
Expand Down
23 changes: 23 additions & 0 deletions tests/integration/update_cluster/complex/cloudformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupmasterscomplexexamplecom"
Expand Down Expand Up @@ -469,6 +470,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupnodescomplexexamplecom"
Expand Down Expand Up @@ -566,6 +568,18 @@
}
}
},
"AWSEC2Route0": {
"Type": "AWS::EC2::Route",
"Properties": {
"RouteTableId": {
"Ref": "AWSEC2RouteTablecomplexexamplecom"
},
"DestinationIpv6CidrBlock": "::/0",
"GatewayId": {
"Ref": "AWSEC2InternetGatewaycomplexexamplecom"
}
}
},
"AWSEC2Route00000": {
"Type": "AWS::EC2::Route",
"Properties": {
Expand Down Expand Up @@ -1249,6 +1263,15 @@
"CidrBlock": "10.2.0.0/16"
}
},
"AWSEC2VPCCidrBlockAmazonIPv6": {
"Type": "AWS::EC2::VPCCidrBlock",
"Properties": {
"VpcId": {
"Ref": "AWSEC2VPCcomplexexamplecom"
},
"AmazonProvidedIpv6CidrBlock": true
}
},
"AWSEC2VPCDHCPOptionsAssociationcomplexexamplecom": {
"Type": "AWS::EC2::VPCDHCPOptionsAssociation",
"Properties": {
Expand Down
15 changes: 12 additions & 3 deletions tests/integration/update_cluster/complex/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-complex-example-com" {
network_interfaces {
associate_public_ip_address = true
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.masters-complex-example-com.id, "sg-exampleid5", "sg-exampleid6"]
}
tag_specifications {
Expand Down Expand Up @@ -471,6 +472,7 @@ resource "aws_launch_template" "nodes-complex-example-com" {
network_interfaces {
associate_public_ip_address = true
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.nodes-complex-example-com.id, "sg-exampleid3", "sg-exampleid4"]
}
tag_specifications {
Expand Down Expand Up @@ -599,6 +601,12 @@ resource "aws_route" "route-0-0-0-0--0" {
route_table_id = aws_route_table.complex-example-com.id
}

resource "aws_route" "route-__--0" {
destination_ipv6_cidr_block = "::/0"
gateway_id = aws_internet_gateway.complex-example-com.id
route_table_id = aws_route_table.complex-example-com.id
}

resource "aws_route" "route-private-us-test-1a-0-0-0-0--0" {
destination_cidr_block = "0.0.0.0/0"
route_table_id = aws_route_table.private-us-test-1a-complex-example-com.id
Expand Down Expand Up @@ -974,9 +982,10 @@ resource "aws_subnet" "us-test-1a-complex-example-com" {
}

resource "aws_vpc" "complex-example-com" {
cidr_block = "172.20.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
assign_generated_ipv6_cidr_block = true
cidr_block = "172.20.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
"KubernetesCluster" = "complex.example.com"
"Name" = "complex.example.com"
Expand Down
15 changes: 12 additions & 3 deletions tests/integration/update_cluster/compress/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-compress-example-com"
network_interfaces {
associate_public_ip_address = true
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.masters-compress-example-com.id]
}
tag_specifications {
Expand Down Expand Up @@ -393,6 +394,7 @@ resource "aws_launch_template" "nodes-compress-example-com" {
network_interfaces {
associate_public_ip_address = true
delete_on_termination = true
ipv6_address_count = 0
security_groups = [aws_security_group.nodes-compress-example-com.id]
}
tag_specifications {
Expand Down Expand Up @@ -437,6 +439,12 @@ resource "aws_route" "route-0-0-0-0--0" {
route_table_id = aws_route_table.compress-example-com.id
}

resource "aws_route" "route-__--0" {
destination_ipv6_cidr_block = "::/0"
gateway_id = aws_internet_gateway.compress-example-com.id
route_table_id = aws_route_table.compress-example-com.id
}

resource "aws_route_table" "compress-example-com" {
tags = {
"KubernetesCluster" = "compress.example.com"
Expand Down Expand Up @@ -596,9 +604,10 @@ resource "aws_subnet" "us-test-1a-compress-example-com" {
}

resource "aws_vpc" "compress-example-com" {
cidr_block = "172.20.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
assign_generated_ipv6_cidr_block = true
cidr_block = "172.20.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
"KubernetesCluster" = "compress.example.com"
"Name" = "compress.example.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupmasterscontainerdexamplecom"
Expand Down Expand Up @@ -386,6 +387,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupnodescontainerdexamplecom"
Expand Down Expand Up @@ -465,6 +467,18 @@
}
}
},
"AWSEC2Route0": {
"Type": "AWS::EC2::Route",
"Properties": {
"RouteTableId": {
"Ref": "AWSEC2RouteTablecontainerdexamplecom"
},
"DestinationIpv6CidrBlock": "::/0",
"GatewayId": {
"Ref": "AWSEC2InternetGatewaycontainerdexamplecom"
}
}
},
"AWSEC2Route00000": {
"Type": "AWS::EC2::Route",
"Properties": {
Expand Down Expand Up @@ -752,6 +766,15 @@
]
}
},
"AWSEC2VPCCidrBlockAmazonIPv6": {
"Type": "AWS::EC2::VPCCidrBlock",
"Properties": {
"VpcId": {
"Ref": "AWSEC2VPCcontainerdexamplecom"
},
"AmazonProvidedIpv6CidrBlock": true
}
},
"AWSEC2VPCDHCPOptionsAssociationcontainerdexamplecom": {
"Type": "AWS::EC2::VPCDHCPOptionsAssociation",
"Properties": {
Expand Down
23 changes: 23 additions & 0 deletions tests/integration/update_cluster/containerd/cloudformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupmasterscontainerdexamplecom"
Expand Down Expand Up @@ -386,6 +387,7 @@
"AssociatePublicIpAddress": true,
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Ipv6AddressCount": 0,
"Groups": [
{
"Ref": "AWSEC2SecurityGroupnodescontainerdexamplecom"
Expand Down Expand Up @@ -465,6 +467,18 @@
}
}
},
"AWSEC2Route0": {
"Type": "AWS::EC2::Route",
"Properties": {
"RouteTableId": {
"Ref": "AWSEC2RouteTablecontainerdexamplecom"
},
"DestinationIpv6CidrBlock": "::/0",
"GatewayId": {
"Ref": "AWSEC2InternetGatewaycontainerdexamplecom"
}
}
},
"AWSEC2Route00000": {
"Type": "AWS::EC2::Route",
"Properties": {
Expand Down Expand Up @@ -752,6 +766,15 @@
]
}
},
"AWSEC2VPCCidrBlockAmazonIPv6": {
"Type": "AWS::EC2::VPCCidrBlock",
"Properties": {
"VpcId": {
"Ref": "AWSEC2VPCcontainerdexamplecom"
},
"AmazonProvidedIpv6CidrBlock": true
}
},
"AWSEC2VPCDHCPOptionsAssociationcontainerdexamplecom": {
"Type": "AWS::EC2::VPCDHCPOptionsAssociation",
"Properties": {
Expand Down
Loading

0 comments on commit 0e89f56

Please sign in to comment.