Skip to content

Commit

Permalink
Merge pull request #1174 from fasaxc/auto-pick-of-#1170-origin-releas…
Browse files Browse the repository at this point in the history
…e-v3.17

[release-v3.17] Auto pick #1170: Pin to Calico-owned scapy image.
  • Loading branch information
mgleung authored Aug 20, 2021
2 parents 2f96eda + 9751e64 commit d278324
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ FELIX_GPL_SOURCE=filesystem/included-source/felix-ebpf-gpl.tar.gz
INCLUDED_SOURCE=$(BIRD_SOURCE) $(FELIX_GPL_SOURCE)

# Versions and locations of dependencies used in tests.
CALICOCTL_VER?=master
CALICOCTL_VER?=release-v3.17
CNI_VER?=master
TEST_CONTAINER_NAME_VER?=latest
CTL_CONTAINER_NAME?=calico/ctl:$(CALICOCTL_VER)-$(ARCH)
Expand Down
2 changes: 2 additions & 0 deletions tests/k8st/create_kind_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ kubeadmConfigPatches:
metadata:
name: config
mode: ipvs
conntrack:
maxPerCore: 0
EOF

${kubectl} get no -o wide
Expand Down
2 changes: 1 addition & 1 deletion tests/k8st/infra/calicoctl-etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
hostNetwork: true
containers:
- name: calicoctl
image: calico/ctl:master
image: calico/ctl:release-v3.17
command:
- /calicoctl
args:
Expand Down
2 changes: 1 addition & 1 deletion tests/k8st/infra/calicoctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
serviceAccountName: calicoctl
containers:
- name: calicoctl
image: calico/ctl:master
image: calico/ctl:release-v3.17
command:
- /calicoctl
args:
Expand Down
8 changes: 4 additions & 4 deletions tests/k8st/tests/test_ipip_spoofing.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def setUp(self):
kubectl("run --generator=run-pod/v1 "
"scapy "
"-n %s "
"--image ehlers/scapy "
"--image calico/scapy:v2.4.0 "
"--overrides='{\"spec\": {\"nodeName\":\"%s\"}}' "
"--command /bin/sleep -- 3600" % (self.ns_name, nodes[2]))

Expand Down Expand Up @@ -181,7 +181,7 @@ def clear_conntrack():
def send_packet(ns_name, name, remote_pod_ip, message):
try:
kubectl("exec " + name + " -ti -n %s -- "
"scapy3 << EOF\n"
"scapy << EOF\n"
"send("
"IP(dst='%s')/"
"UDP(dport=5000, sport=5000)/"
Expand All @@ -196,7 +196,7 @@ def send_packet(ns_name, name, remote_pod_ip, message):
def send_spoofed_ipip_packet(ns_name, name, remote_node_ip, remote_pod_ip, message):
try:
kubectl("exec " + name + " -ti -n %s -- "
"scapy3 << EOF\n"
"scapy << EOF\n"
"send("
"IP(dst='%s')/"
"IP(dst='%s')/"
Expand All @@ -212,7 +212,7 @@ def send_spoofed_ipip_packet(ns_name, name, remote_node_ip, remote_pod_ip, messa
def send_spoofed_vxlan_packet(ns_name, name, remote_node_ip, remote_pod_ip, message):
try:
kubectl("exec " + name + " -ti -n %s -- "
"scapy3 << EOF\n"
"scapy << EOF\n"
"send("
"IP(dst='%s')/"
"UDP(dport=4789)/"
Expand Down

0 comments on commit d278324

Please sign in to comment.