Skip to content

Commit 092aee9

Browse files
test: ginkgo: drop AKS support
We're only running on kind nowadays, and this code hasn't seen any use in ages. Remove it. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
1 parent e7af26f commit 092aee9

10 files changed

Lines changed: 14 additions & 63 deletions

File tree

test/helpers/kubectl.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ const (
5353
// https://github.com/kubernetes/dns/blob/80fdd88276adba36a87c4f424b66fdf37cd7c9a8/pkg/dns/dns.go#L53
5454
DNSHelperTimeout = 7 * time.Minute
5555

56-
// CIIntegrationAKS contains the constants to be used when running tests on AKS.
57-
CIIntegrationAKS = "aks"
58-
5956
// CIIntegrationKind contains the constant to be used when running tests on kind.
6057
CIIntegrationKind = "kind"
6158

@@ -140,25 +137,6 @@ var (
140137
"connectivityProbeFrequencyRatio": "0",
141138
}
142139

143-
aksHelmOverrides = map[string]string{
144-
"ipam.mode": "delegated-plugin",
145-
"routingMode": "native",
146-
"endpointRoutes.enabled": "true",
147-
"extraArgs": "{--local-router-ipv4=169.254.23.0}",
148-
"k8s.requireIPv4PodCIDR": "false",
149-
"ipv6.enabled": "false",
150-
"ipv4NativeRoutingCIDR": NativeRoutingCIDR(),
151-
"enableIPv4Masquerade": "false",
152-
"install-no-conntrack-iptables-rules": "false",
153-
"l7Proxy": "false",
154-
"hubble.enabled": "false",
155-
"kubeProxyReplacement": "true",
156-
"endpointHealthChecking.enabled": "false",
157-
"cni.install": "true",
158-
"cni.customConf": "true",
159-
"cni.configMap": "cni-configuration",
160-
}
161-
162140
microk8sHelmOverrides = map[string]string{
163141
"cni.confPath": "/var/snap/microk8s/current/args/cni-network",
164142
"cni.binPath": "/var/snap/microk8s/current/opt/cni/bin",
@@ -183,7 +161,6 @@ var (
183161
// specific CI environment integrations.
184162
// The key must be a string consisting of lower case characters.
185163
helmOverrides = map[string]map[string]string{
186-
CIIntegrationAKS: aksHelmOverrides,
187164
CIIntegrationKind: kindHelmOverrides,
188165
CIIntegrationMicrok8s: microk8sHelmOverrides,
189166
CIIntegrationMinikube: minikubeHelmOverrides,

test/helpers/utils.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,6 @@ func DoesNotRunOn54Kernel() bool {
406406
return !RunsOn54Kernel()
407407
}
408408

409-
func NativeRoutingCIDR() string {
410-
return os.Getenv("NATIVE_CIDR")
411-
}
412-
413409
// RunsOn54OrLaterKernel checks whether a test case is running on 5.4 or later kernel
414410
func RunsOn54OrLaterKernel() bool {
415411
return RunsOnNetNextKernel() || RunsOn54Kernel()
@@ -420,16 +416,6 @@ func DoesNotRunOn54OrLaterKernel() bool {
420416
return !RunsOn54OrLaterKernel()
421417
}
422418

423-
// RunsOnAKS returns true if the tests are running on AKS.
424-
func RunsOnAKS() bool {
425-
return GetCurrentIntegration() == CIIntegrationAKS
426-
}
427-
428-
// DoesNotRunOnAKS is the complement function of DoesNotRunOnAKS.
429-
func DoesNotRunOnAKS() bool {
430-
return !RunsOnAKS()
431-
}
432-
433419
// RunsWithKubeProxyReplacement returns true if the kernel supports our
434420
// kube-proxy replacement. Note that kube-proxy may still be running
435421
// alongside Cilium.
@@ -539,23 +525,13 @@ func SkipRaceDetectorEnabled() bool {
539525
// DualStackSupported returns whether the current environment has DualStack IPv6
540526
// enabled or not for the cluster.
541527
func DualStackSupported() bool {
542-
// AKS does not support dual stack yet
543-
if IsIntegration(CIIntegrationAKS) {
544-
return false
545-
}
546-
547528
// We only have DualStack enabled in KIND.
548529
return GetCurrentIntegration() == "" || IsIntegration(CIIntegrationKind)
549530
}
550531

551532
// DualStackSupportBeta returns true if the environment has a Kubernetes version that
552533
// has support for k8s DualStack beta API types.
553534
func DualStackSupportBeta() bool {
554-
// AKS does not support dual stack yet
555-
if IsIntegration(CIIntegrationAKS) {
556-
return false
557-
}
558-
559535
return GetCurrentIntegration() == "" || IsIntegration(CIIntegrationKind)
560536
}
561537

test/k8s/datapath_configuration.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,17 +315,15 @@ var _ = Describe("K8sDatapathConfig", func() {
315315
kubectl.Exec("kubectl label nodes --all status-")
316316
})
317317

318-
SkipItIf(helpers.RunsOnAKS, "With VXLAN", func() {
318+
It("With VXLAN", func() {
319319
options := map[string]string{
320320
"hostFirewall.enabled": "true",
321321
}
322322
deploymentManager.DeployCilium(options, DeployCiliumOptionsAndDNS)
323323
testHostFirewall(kubectl)
324324
})
325325

326-
SkipItIf(func() bool {
327-
return helpers.RunsOnAKS()
328-
}, "With VXLAN and endpoint routes", func() {
326+
It("With VXLAN and endpoint routes", func() {
329327
options := map[string]string{
330328
"hostFirewall.enabled": "true",
331329
"endpointRoutes.enabled": "true",

test/k8s/fqdn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ var _ = SkipDescribeIf(helpers.RunsOn54Kernel, "K8sAgentFQDNTest", func() {
293293
connectivityTest()
294294
})
295295

296-
SkipItIf(helpers.RunsOnAKS, "Validate that multiple specs are working correctly", func() {
296+
It("Validate that multiple specs are working correctly", func() {
297297
// To make sure that UUID in multiple specs are plumbed correctly to
298298
// Cilium Policy
299299
fqdnPolicy := helpers.ManifestGet(kubectl.BasePath(), "fqdn-proxy-multiple-specs.yaml")
@@ -329,7 +329,7 @@ var _ = SkipDescribeIf(helpers.RunsOn54Kernel, "K8sAgentFQDNTest", func() {
329329
res.ExpectFail("Can connect to a valid target when it should NOT work")
330330
})
331331

332-
SkipItIf(helpers.RunsOnAKS, "Validate that FQDN policy continues to work after being updated", func() {
332+
It("Validate that FQDN policy continues to work after being updated", func() {
333333
// To make sure that UUID in multiple specs are plumbed correctly to
334334
// Cilium Policy
335335
fqdnPolicy := helpers.ManifestGet(kubectl.BasePath(), "fqdn-proxy-multiple-specs.yaml")

test/k8s/hubble.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var _ = Describe("K8sAgentHubbleTest", func() {
2424
// replacement, as the trace events depend on it. We thus run the tests
2525
// on GKE and our 4.19 pipeline.
2626
SkipContextIf(func() bool {
27-
return helpers.RunsOnNetNextKernel() || helpers.RunsOnAKS()
27+
return helpers.RunsOnNetNextKernel()
2828
}, "Hubble Observe", func() {
2929
var (
3030
kubectl *helpers.Kubectl

test/k8s/kafka_policies.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var _ = SkipDescribeIf(helpers.RunsOn54Kernel, "K8sKafkaPolicyTest", func() {
5353
})
5454

5555
// Tests involving the L7 proxy do not work when built with -race, see issue #13757.
56-
SkipContextIf(func() bool { return helpers.SkipRaceDetectorEnabled() || helpers.RunsOnAKS() }, "Kafka Policy Tests", func() {
56+
SkipContextIf(func() bool { return helpers.SkipRaceDetectorEnabled() }, "Kafka Policy Tests", func() {
5757
createTopicCmd := func(topic string) string {
5858
return fmt.Sprintf("/opt/kafka_2.11-0.10.1.0/bin/kafka-topics.sh --create "+
5959
"--zookeeper localhost:2181 --replication-factor 1 "+

test/k8s/lrp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818

1919
// The 5.4 CI job is intended to catch BPF complexity regressions and as such
2020
// doesn't need to execute this test suite.
21-
var _ = SkipDescribeIf(func() bool { return helpers.RunsOn54Kernel() && helpers.DoesNotRunOnAKS() }, "K8sDatapathLRPTests", func() {
21+
var _ = SkipDescribeIf(func() bool { return helpers.RunsOn54Kernel() }, "K8sDatapathLRPTests", func() {
2222
var (
2323
kubectl *helpers.Kubectl
2424
ciliumFilename string
@@ -43,7 +43,7 @@ var _ = SkipDescribeIf(func() bool { return helpers.RunsOn54Kernel() && helpers.
4343
kubectl.CiliumReport("cilium-dbg lrp list", "cilium-dbg service list")
4444
})
4545

46-
SkipContextIf(func() bool { return helpers.RunsOnAKS() }, "Checks local redirect policy", func() {
46+
Context("Checks local redirect policy", func() {
4747
const (
4848
lrpServiceName = "lrp-demo-service"
4949
be1Name = "k8s1-backend"

test/k8s/net_policies.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var _ = SkipDescribeIf(func() bool {
2727
// and the third node. Other CI jobs are not expected to increase
2828
// code coverage.
2929
//
30-
return helpers.RunsOn54Kernel() || helpers.RunsOnAKS()
30+
return helpers.RunsOn54Kernel()
3131
}, "K8sAgentPolicyTest", func() {
3232

3333
var (

test/k8s/pod_mac_address.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
// The 5.4 CI job is intended to catch BPF complexity regressions and as such
1818
// doesn't need to execute this test suite.
19-
var _ = SkipDescribeIf(func() bool { return helpers.RunsOn54Kernel() && helpers.DoesNotRunOnAKS() }, "K8sSpecificMACAddressTests", func() {
19+
var _ = SkipDescribeIf(func() bool { return helpers.RunsOn54Kernel() }, "K8sSpecificMACAddressTests", func() {
2020
var (
2121
kubectl *helpers.Kubectl
2222
ciliumFilename string
@@ -41,7 +41,7 @@ var _ = SkipDescribeIf(func() bool { return helpers.RunsOn54Kernel() && helpers.
4141
kubectl.CiliumReport("cilium-dbg endpoint list -o jsonpath='{range [*]}{@.id}{\"=\"}{@.status.networking.mac}{\"\\n\"}{end}'")
4242
})
4343

44-
SkipContextIf(func() bool { return helpers.RunsOnAKS() }, "Check whether the pod is created", func() {
44+
Context("Check whether the pod is created", func() {
4545
const specificMACAddress = "specific-mac-address=specific-mac-address"
4646
var podYAML string
4747

test/k8s/services.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ var _ = SkipDescribeIf(helpers.RunsOn54Kernel, "K8sDatapathServicesTest", func()
117117
testFailBind(kubectl, ni)
118118
})
119119

120-
SkipContextIf(helpers.RunsOnAKS, "with L7 policy", func() {
120+
Context("with L7 policy", func() {
121121
AfterAll(func() {
122122
kubectl.Delete(demoPolicyL7)
123123
// Remove CT entries to avoid packet drops which could happen
@@ -187,7 +187,7 @@ var _ = SkipDescribeIf(helpers.RunsOn54Kernel, "K8sDatapathServicesTest", func()
187187
})
188188
})
189189

190-
SkipContextIf(func() bool { return helpers.RunsWithKubeProxyReplacement() || helpers.RunsOnAKS() }, "TFTP with DNS Proxy port collision", func() {
190+
SkipContextIf(func() bool { return helpers.RunsWithKubeProxyReplacement() }, "TFTP with DNS Proxy port collision", func() {
191191
var (
192192
demoPolicy string
193193
ciliumPodK8s1 string
@@ -281,7 +281,7 @@ var _ = SkipDescribeIf(helpers.RunsOn54Kernel, "K8sDatapathServicesTest", func()
281281
})
282282

283283
SkipContextIf(func() bool {
284-
return helpers.RunsWithKubeProxyReplacement() || helpers.RunsOnAKS()
284+
return helpers.RunsWithKubeProxyReplacement()
285285
}, "with L7 policy", func() {
286286
var demoPolicyL7 string
287287

0 commit comments

Comments
 (0)