Skip to content

Commit e7af26f

Browse files
test: ginkgo: drop EKS 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 9f1f685 commit e7af26f

2 files changed

Lines changed: 6 additions & 78 deletions

File tree

test/helpers/kubectl.go

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

56-
// CIIntegrationEKSChaining contains the constants to be used when running tests on EKS with aws-cni in chaining mode.
57-
CIIntegrationEKSChaining = "eks-chaining"
58-
59-
// CIIntegrationEKS contains the constants to be used when running tests on EKS in ENI mode.
60-
CIIntegrationEKS = "eks"
61-
6256
// CIIntegrationAKS contains the constants to be used when running tests on AKS.
6357
CIIntegrationAKS = "aks"
6458

@@ -146,24 +140,6 @@ var (
146140
"connectivityProbeFrequencyRatio": "0",
147141
}
148142

149-
eksChainingHelmOverrides = map[string]string{
150-
"k8s.requireIPv4PodCIDR": "false",
151-
"cni.chainingMode": "aws-cni",
152-
"masquerade": "false",
153-
"routingMode": "native",
154-
"nodeinit.enabled": "true",
155-
}
156-
157-
eksHelmOverrides = map[string]string{
158-
"egressMasqueradeInterfaces": "eth0",
159-
"eni.enabled": "true",
160-
"ipam.mode": "eni",
161-
"ipv6.enabled": "false",
162-
"k8s.requireIPv4PodCIDR": "false",
163-
"nodeinit.enabled": "true",
164-
"routingMode": "native",
165-
}
166-
167143
aksHelmOverrides = map[string]string{
168144
"ipam.mode": "delegated-plugin",
169145
"routingMode": "native",
@@ -207,12 +183,10 @@ var (
207183
// specific CI environment integrations.
208184
// The key must be a string consisting of lower case characters.
209185
helmOverrides = map[string]map[string]string{
210-
CIIntegrationEKSChaining: eksChainingHelmOverrides,
211-
CIIntegrationEKS: eksHelmOverrides,
212-
CIIntegrationAKS: aksHelmOverrides,
213-
CIIntegrationKind: kindHelmOverrides,
214-
CIIntegrationMicrok8s: microk8sHelmOverrides,
215-
CIIntegrationMinikube: minikubeHelmOverrides,
186+
CIIntegrationAKS: aksHelmOverrides,
187+
CIIntegrationKind: kindHelmOverrides,
188+
CIIntegrationMicrok8s: microk8sHelmOverrides,
189+
CIIntegrationMinikube: minikubeHelmOverrides,
216190
}
217191

218192
// resourcesToClean is the list of resources which should be cleaned

test/k8s/net_policies.go

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ var _ = SkipDescribeIf(helpers.DoesNotRunOn54OrLaterKernel,
14381438
// Test must run with KPR enabled, see below comments.
14391439
Context("Validate toEntities KubeAPIServer", func() {
14401440
var (
1441-
k8s1Name, k8s1IP string
1441+
k8s1IP string
14421442
k8s1PodName, k8s2PodName string
14431443
k8s1PodIP, k8s2PodIP string
14441444
outsideNodeName string
@@ -1477,7 +1477,7 @@ var _ = SkipDescribeIf(helpers.DoesNotRunOn54OrLaterKernel,
14771477
testNamespace,
14781478
fmt.Sprintf("-l %s", testDS), helpers.HelperTimeout),
14791479
).Should(BeNil())
1480-
k8s1Name, k8s1IP = kubectl.GetNodeInfo(helpers.K8s1)
1480+
_, k8s1IP = kubectl.GetNodeInfo(helpers.K8s1)
14811481
k8s1PodName, k8s1PodIP = kubectl.GetPodOnNodeLabeledWithOffset(helpers.K8s1, testDS, 0)
14821482
k8s2PodName, k8s2PodIP = kubectl.GetPodOnNodeLabeledWithOffset(helpers.K8s2, testDS, 0)
14831483
if helpers.ExistNodeWithoutCilium() {
@@ -1506,52 +1506,6 @@ var _ = SkipDescribeIf(helpers.DoesNotRunOn54OrLaterKernel,
15061506
expectHostSuccess, expectRemoteNodeSuccess, expectPodSuccess, expectWorldSuccess bool,
15071507
) {
15081508
var wg sync.WaitGroup
1509-
wg.Add(1)
1510-
go func() {
1511-
defer GinkgoRecover()
1512-
defer wg.Done()
1513-
switch helpers.GetCurrentIntegration() {
1514-
case helpers.CIIntegrationEKS, helpers.CIIntegrationEKSChaining:
1515-
By("Checking ingress connectivity from k8s1 node to k8s1 pod (host)")
1516-
default:
1517-
// We need to bypass this check as in a non-managed
1518-
// environment like kind, the kube-apiserver is
1519-
// running locally on K8s1. This means that local host
1520-
// traffic cannot be disambiguated from kube-apiserver
1521-
// traffic.
1522-
By("Bypassing check for ingress connectivity for host, which cannot be done in non-managed environments")
1523-
return
1524-
}
1525-
res := kubectl.ExecInHostNetNS(context.TODO(), k8s1Name,
1526-
helpers.CurlFail(k8s1PodIP))
1527-
ExpectWithOffset(1, res).To(getMatcher(expectHostSuccess),
1528-
"HTTP ingress connectivity to pod %q from local host", k8s1PodIP)
1529-
}()
1530-
1531-
wg.Add(1)
1532-
go func() {
1533-
defer GinkgoRecover()
1534-
defer wg.Done()
1535-
switch helpers.GetCurrentIntegration() {
1536-
case helpers.CIIntegrationEKS, helpers.CIIntegrationEKSChaining:
1537-
By("Checking ingress connectivity from k8s1 node to k8s2 pod (remote-node)")
1538-
default:
1539-
// We need to bypass this check as in a two node
1540-
// cluster, the kube-apiserver will be running on at
1541-
// least one of the two nodes, which means that any
1542-
// traffic to or from will be considered to / from
1543-
// kube-apiserver, and not remote-node. If we had a
1544-
// third node with Cilium installed, then we wouldn't
1545-
// need to bypass this check.
1546-
By("Bypassing check for ingress connectivity for remote-node, which cannot be done in a two-node cluster")
1547-
return
1548-
}
1549-
res := kubectl.ExecInHostNetNS(context.TODO(), k8s1Name,
1550-
helpers.CurlFail(k8s2PodIP))
1551-
ExpectWithOffset(1, res).To(getMatcher(expectRemoteNodeSuccess),
1552-
"HTTP ingress connectivity to pod %q from remote node", k8s2PodIP)
1553-
}()
1554-
15551509
wg.Add(1)
15561510
go func() {
15571511
defer GinkgoRecover()

0 commit comments

Comments
 (0)