Skip to content

Commit

Permalink
test: Test endpoint routes in high-scale IPcache mode
Browse files Browse the repository at this point in the history
Previous commits fixed our support for endpoint routes with high-scale
IPcache so we can now cover it in tests.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
  • Loading branch information
pchaigno committed May 24, 2023
1 parent 87e6b93 commit 718b8cf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/k8s/datapath_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,14 +479,15 @@ var _ = Describe("K8sDatapathConfig", func() {
_ = kubectl.Delete(hsIPcacheYAML)
})

testHighScaleIPcache := func(tunnelProto string) {
testHighScaleIPcache := func(tunnelProto string, epRoutesConfig string) {
options := map[string]string{
"highScaleIPcache.enabled": "true",
"routingMode": "native",
"bpf.monitorAggregation": "none",
"ipv6.enabled": "false",
"wellKnownIdentities.enabled": "true",
"tunnelProtocol": tunnelProto,
"endpointRoutes.enabled": epRoutesConfig,
}
if !helpers.RunsOnGKE() {
options["autoDirectNodeRoutes"] = "true"
Expand All @@ -508,12 +509,12 @@ var _ = Describe("K8sDatapathConfig", func() {
Expect(err).ToNot(HaveOccurred(), "Client pods not ready after timeout")
}

It("Test ingress policy enforcement with VXLAN", func() {
testHighScaleIPcache("vxlan")
It("Test ingress policy enforcement with VXLAN and no endpoint routes", func() {
testHighScaleIPcache("vxlan", "false")
})

It("Test ingress policy enforcement with GENEVE", func() {
testHighScaleIPcache("geneve")
It("Test ingress policy enforcement with GENEVE and endpoint routes", func() {
testHighScaleIPcache("geneve", "true")
})
})

Expand Down

0 comments on commit 718b8cf

Please sign in to comment.