Skip to content

Commit

Permalink
test: Add e2e test for ip-masq-agent with IPv4 only
Browse files Browse the repository at this point in the history
In order to detect issues occurring with ip-masq-agent when IPv4 only is
enabled, add a new test to deploy the ip-masq-agent without IPv6.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
  • Loading branch information
qmonnet committed Jun 26, 2023
1 parent bdf888a commit fa67780
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/ginkgo/main-focus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ include:

###
# K8sDatapathConfig Check BPF masquerading with ip-masq-agent DirectRouting
# K8sDatapathConfig Check BPF masquerading with ip-masq-agent DirectRouting, IPv4 only
# K8sDatapathConfig Check BPF masquerading with ip-masq-agent VXLAN
# K8sDatapathConfig High-scale IPcache Test ingress policy enforcement with GENEVE and endpoint routes
# K8sDatapathConfig High-scale IPcache Test ingress policy enforcement with VXLAN and no endpoint routes
Expand Down
12 changes: 12 additions & 0 deletions test/k8s/datapath_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@ var _ = Describe("K8sDatapathConfig", func() {
testIPMasqAgent()
})

It("DirectRouting, IPv4 only", func() {
deploymentManager.DeployCilium(map[string]string{
"ipMasqAgent.enabled": "true",
"routingMode": "native",
"autoDirectNodeRoutes": "true",
"ipMasqAgent.config.nonMasqueradeCIDRs": fmt.Sprintf("{%s/32}", nodeIP),
"ipv6.enabled": "false",
}, DeployCiliumOptionsAndDNS)

testIPMasqAgent()
})

It("VXLAN", func() {
deploymentManager.DeployCilium(map[string]string{
"ipMasqAgent.enabled": "true",
Expand Down

0 comments on commit fa67780

Please sign in to comment.