Skip to content

Commit

Permalink
Merge pull request #12634 from hakman/ipv6_integration_tests
Browse files Browse the repository at this point in the history
Add more IPv6 integration tests
  • Loading branch information
k8s-ci-robot committed Oct 29, 2021
2 parents 5bfdefb + 4597e85 commit 9c56f33
Show file tree
Hide file tree
Showing 74 changed files with 10,408 additions and 78 deletions.
28 changes: 22 additions & 6 deletions cmd/kops/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,24 +247,38 @@ func TestExternalPolicies(t *testing.T) {
runTestTerraformAWS(t)
}

// TestMinimalIPv6 runs the test on a minimum IPv6 configuration, similar to kops create cluster minimal.example.com --zones us-west-1a
// TestMinimalIPv6 runs the test on a minimum IPv6 configuration
func TestMinimalIPv6(t *testing.T) {
newIntegrationTest("minimal-ipv6.example.com", "minimal-ipv6").
withAddons(dnsControllerAddon).
runTestTerraformAWS(t)
newIntegrationTest("minimal-ipv6.example.com", "minimal-ipv6").runTestCloudformation(t)
}

// TestIPv6CloudIPAM runs the test on a minimum IPv6 configuration, similar to kops create cluster minimal.example.com --zones us-west-1a
func TestIPv6CloudIPAM(t *testing.T) {
// TestMinimalIPv6Calico runs the test on a minimum IPv6 configuration with Calico
func TestMinimalIPv6Calico(t *testing.T) {
featureflag.ParseFlags("+AWSIPv6")
unsetFeatureFlags := func() {
featureflag.ParseFlags("-AWSIPv6")
}
defer unsetFeatureFlags()
newIntegrationTest("minimal-ipv6.example.com", "ipv6-cloudipam").
withAddons(dnsControllerAddon).
newIntegrationTest("minimal-ipv6.example.com", "minimal-ipv6-calico").
withAddons(calicoAddon, dnsControllerAddon).
runTestTerraformAWS(t)
newIntegrationTest("minimal-ipv6.example.com", "minimal-ipv6-calico").runTestCloudformation(t)
}

// TestMinimalIPv6Calico runs the test on a minimum IPv6 configuration with Cilium
func TestMinimalIPv6Cilium(t *testing.T) {
featureflag.ParseFlags("+AWSIPv6")
unsetFeatureFlags := func() {
featureflag.ParseFlags("-AWSIPv6")
}
defer unsetFeatureFlags()
newIntegrationTest("minimal-ipv6.example.com", "minimal-ipv6-cilium").
withAddons(ciliumAddon, dnsControllerAddon).
runTestTerraformAWS(t)
newIntegrationTest("minimal-ipv6.example.com", "minimal-ipv6-cilium").runTestCloudformation(t)
}

// TestMinimalWarmPool runs the test on a minimum Warm Pool configuration
Expand Down Expand Up @@ -326,11 +340,13 @@ func TestPrivateFlannel(t *testing.T) {
runTestTerraformAWS(t)
}

const calicoAddon = "networking.projectcalico.org-k8s-1.16"

// TestPrivateCalico runs the test on a configuration with private topology, calico networking
func TestPrivateCalico(t *testing.T) {
newIntegrationTest("privatecalico.example.com", "privatecalico").
withPrivate().
withAddons("networking.projectcalico.org-k8s-1.16", dnsControllerAddon).
withAddons(calicoAddon, dnsControllerAddon).
runTestTerraformAWS(t)
newIntegrationTest("privatecalico.example.com", "privatecalico").
withPrivate().
Expand Down
Loading

0 comments on commit 9c56f33

Please sign in to comment.