Skip to content

Commit

Permalink
test: Minimal test for the host firewall in IPv4-only mode
Browse files Browse the repository at this point in the history
[ upstream commit 44c122d ]

This test is meant to catch complexity regressions such as fixed
in the previous commit. It runs only on GKE for now and will be extended
in follow up PRs.

Signed-off-by: Paul Chaignon <paul@cilium.io>
  • Loading branch information
pchaigno authored and aanm committed Dec 4, 2020
1 parent 48e3058 commit 58b8a89
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/k8sT/DatapathConfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,23 @@ var _ = Describe("K8sDatapathConfig", func() {
Expect(testPodConnectivityAcrossNodes(kubectl)).Should(BeTrue(), "Connectivity test between nodes failed")
})
})

Context("Host firewall", func() {
SkipItIf(func() bool {
return !helpers.IsIntegration(helpers.CIIntegrationGKE)
}, "Check connectivity with IPv6 disabled", func() {
deploymentManager.DeployCilium(map[string]string{
"ipv4.enabled": "true",
"ipv6.enabled": "false",
"hostFirewall": "true",
// We need the default GKE config. except for per-endpoint
// routes (incompatible with host firewall for now).
"gke.enabled": "false",
"tunnel": "disabled",
}, DeployCiliumOptionsAndDNS)
Expect(testPodConnectivityAcrossNodes(kubectl)).Should(BeTrue(), "Connectivity test between nodes failed")
})
})
})

func testPodConnectivityAcrossNodes(kubectl *helpers.Kubectl) bool {
Expand Down

0 comments on commit 58b8a89

Please sign in to comment.