Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#499 from qabpea/pa-3
Browse files Browse the repository at this point in the history
update to use k8s 1.27.1 and kind 0.18
  • Loading branch information
k8s-ci-robot authored Apr 27, 2023
2 parents 3ab3592 + 69b381a commit 19049f8
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 23 deletions.
12 changes: 6 additions & 6 deletions hack/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ KPNG_SERVER_ADDRESS="unix:///k8s/proxy.sock"
KPNG_DEBUG_LEVEL=4

# kind
KIND_VERSION="v0.17.0"
KIND_VERSION="v0.18.0"
# Users can specify docker.io, quay.io registry
KINDEST_NODE_IMAGE="docker.io/kindest/node"

CLUSTER_NAME="kpng-proxy"
K8S_VERSION="v1.25.3"
K8S_VERSION="v1.27.1"
OS=$(uname| tr '[:upper:]' '[:lower:]')

function add_to_path {
Expand Down Expand Up @@ -107,7 +107,7 @@ function setup_kind {


if ! [ -f "${install_directory}"/kind ] ; then
info_message -e "\nDownloading kind ..."
info_message "Downloading kind ..."

local tmp_file=$(mktemp -q)
if_error_exit "Could not create temp file, mktemp failed"
Expand Down Expand Up @@ -146,7 +146,7 @@ function setup_kubectl {


if ! [ -f "${install_directory}"/kubectl ] ; then
info_message -e "\nDownloading kubectl ..."
info_message "Downloading kubectl ..."

local tmp_file=$(mktemp -q)
if_error_exit "Could not create temp file, mktemp failed"
Expand Down Expand Up @@ -182,8 +182,8 @@ function setup_ginkgo {
local temp_directory=$(mktemp -qd)

if ! [ -f "${bin_dir}"/ginkgo ] || ! [ -f "${bin_dir}"/e2e.test ] ; then
info_message -e "\nDownloading ginkgo and e2e.test ..."
curl -L https://dl.k8s.io/"${k8s_version}"/kubernetes-test-"${os}"-amd64.tar.gz \
info_message "Downloading ginkgo and e2e.test ..."
curl -L https://dl.k8s.io/release/"${k8s_version}"/kubernetes-test-"${os}"-amd64.tar.gz \
-o "${temp_directory}"/kubernetes-test-"${os}"-amd64.tar.gz
if_error_exit "cannot download kubernetes-test package"

Expand Down
2 changes: 1 addition & 1 deletion hack/test_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fi
shopt -s expand_aliases

: "${E2E_GO_VERSION:="1.18.4"}"
: "${E2E_K8S_VERSION:="v1.25.3"}"
: "${E2E_TIMEOUT_MINUTES:=100}"
: "${E2E_K8S_VERSION:="v1.27.1"}"

CONTAINER_ENGINE="docker"
KPNG_IMAGE_TAG_NAME="kpng:test"
Expand Down
117 changes: 101 additions & 16 deletions hack/test_skip_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ GINKGO_SKIP_ipv4_iptables_TEST="should be updated after adding or deleting ports
|should serve multiport endpoints from pods\
|should check kube-proxy urls\
|should be rejected when no endpoints exist\
|should be able to preserve UDP traffic when server pod cycles for a NodePort service"
|should be able to preserve UDP traffic when server pod cycles for a NodePort service\
|should run through the lifecycle of Pods and PodStatus\
|should mirror a custom Endpoint with multiple subsets and same IP address\
|should support a Service with multiple ports specified in multiple EndpointSlices\
|should support a Service with multiple endpoint IPs specified in multiple EndpointSlices|"


GINKGO_SKIP_ipv6_iptables_TEST="should be updated after adding or deleting ports\
Expand All @@ -34,33 +38,99 @@ GINKGO_SKIP_ipv6_iptables_TEST="should be updated after adding or deleting ports
|should provide DNS for the cluster\
|should provide DNS for pods for Subdomain\
|should function for endpoint-Service: udp\
|should be able to preserve UDP traffic when server pod cycles for a NodePort service"
|should be able to preserve UDP traffic when server pod cycles for a NodePort service\
|should mirror a custom Endpoint with multiple subsets and same IP address\
|should support a Service with multiple endpoint IPs specified in multiple EndpointSlices\
|should support a Service with multiple ports specified in multiple EndpointSlices"

GINKGO_SKIP_dual_iptables_TEST="should be updated after adding or deleting ports\
|should serve multiport endpoints from pods\
|should be able to preserve UDP traffic when server pod cycles for a NodePort service\
|should check kube-proxy urls"

GINKGO_SKIP_ipv4_ipvs_TEST="should have session affinity work for NodePort service\
|should check kube-proxy urls\
|should support a Service with multiple ports specified in multiple EndpointSlices\
|should support a Service with multiple endpoint IPs specified in multiple EndpointSlices\
|should mirror a custom Endpoint with multiple subsets and same IP address"

GINKGO_SKIP_ipv4_ipvs_TEST="should check kube-proxy urls\
|should work after the service has been recreated\
|should be able to preserve UDP traffic when server pod cycles for a NodePort service\
|should not be able to connect to terminating and unready endpoints if PublishNotReadyAddresses is false\
|should implement service.kubernetes.io/service-proxy-name\
|should be able to update service type to NodePort listening on same port number but different protocols\
|hould have session affinity timeout work for service with type clusterIP\
|should be able to preserve UDP traffic when initial unready endpoints get ready\
|should be able to switch session affinity for NodePort service\
|should drop INVALID conntrack entries\
|should have session affinity timeout work for NodePort service\
|should be able to switch session affinity for NodePort service"
|should be able to preserve UDP traffic when server pod cycles for a ClusterIP service\
|should be able to switch session affinity for service with type clusterIP\
|should have session affinity work for NodePort service\
|should be able to change the type from ExternalName to NodePort\
|should implement service.kubernetes.io/headless\
|should be able to create a functioning NodePort service\
|should create endpoints for unready pods\
|should be able to connect to terminating and unready endpoints if PublishNotReadyAddresses is true\
|should function for multiple endpoint-Services with same selecto"

GINKGO_SKIP_ipv6_ipvs_TEST="should have session affinity work for NodePort service\
|should have session affinity timeout work for NodePort service\
|should be able to update service type to NodePort listening on same port number but different protocols\
|should be able to switch session affinity for NodePort service\
|should be able to change the type from NodePort to ExternalName\
|should be able to create a functioning NodePort service\
|should be able to connect to terminating and unready endpoints if PublishNotReadyAddresses is true\
|should be able to change the type from ExternalName to NodePort\
|should be able to preserve UDP traffic when server pod cycles for a NodePort service\
|should function for endpoint-Service: udp\
|should function for service endpoints using hostNetwork\
|should support basic nodePort: udp functionality\
|should function for node-Service: http\
|should update nodePort: http\
|should function for pod-Service: udp\
|should function for node-Service: udp\
|should function for multiple endpoint-Services with same selector\
|should check kube-proxy urls\
|should work after the service has been recreated\
|should update nodePort: udp\
|should be able to change the type from ClusterIP to ExternalName\
|should create endpoints for unready pods\
|should provide DNS for services\
|should be able to change the type from NodePort to ExternalName\
|should provide DNS for pods for Subdomain\
|should provide DNS for the cluster"
|should provide DNS for services\
|should provide DNS for the cluster\
|should run through the lifecycle of Pods and PodStatus\
|should function for endpoint-Service: http\
|should function for pod-Service: http"

GINKGO_SKIP_dual_ipvs_TEST="should have session affinity work for NodePort service\
GINKGO_SKIP_dual_ipvs_TEST="should work after the service has been recreated\
|should be able to update service type to NodePort listening on same port number but different protocols\
|should not be able to connect to terminating and unready endpoints if PublishNotReadyAddresses is false\
|should be able to preserve UDP traffic when server pod cycles for a NodePort service\
|should be able to preserve UDP traffic when server pod cycles for a ClusterIP service\
|should implement service.kubernetes.io/service-proxy-name\
|should have session affinity timeout work for service with type clusterIP\
|should have session affinity work for NodePort service\
|should be able to preserve UDP traffic when server pod cycles for a ClusterIP service\
|should have session affinity timeout work for service with type clusterIP\
|should be able to preserve UDP traffic when initial unready endpoints\
|should be able to switch session affinity for service with type clusterIP\
|should create endpoints for unready pods\
|should have session affinity timeout work for NodePort service\
|should be able to switch session affinity for NodePort service"
|should be able to connect to terminating and unready endpoints if PublishNotReadyAddresses is true\
|should drop INVALID conntrack entries\
|should implement service.kubernetes.io/headless\
|should check kube-proxy urls\
|should be able to switch session affinity for NodePort service\
|should function for multiple endpoint-Services with same selector\
|should be able to create a functioning NodePort service\
|should be able to change the type from ExternalName to NodePort"

GINKGO_SKIP_ipv4_nft_TEST="should check kube-proxy urls\
|should work with the pod containing more than 6 DNS search paths and longer than 256 search list characters"
|should work with the pod containing more than 6 DNS search paths and longer than 256 search list characters\
|should run through the lifecycle of Pods and PodStatus\
|should support a Service with multiple endpoint IPs specified in multiple EndpointSlices\
|should mirror a custom Endpoint with multiple subsets and same IP address\
|should support a Service with multiple ports specified in multiple EndpointSlices"


GINKGO_SKIP_ipv6_nft_TEST="should work after the service has been recreated\
|ServiceAccountIssuerDiscovery should support OIDC discovery of service account issuer\
Expand Down Expand Up @@ -107,14 +177,20 @@ GINKGO_SKIP_ipv6_nft_TEST="should work after the service has been recreated\
|should work after the service has been recreated\
|work after the service has been recreated\
|should update endpoints: udp\
|should update nodePort: http"
|should update nodePort: http\
|should support a Service with multiple endpoint IPs specified in multiple EndpointSlices\
|should support a Service with multiple ports specified in multiple EndpointSlices\
|should mirror a custom Endpoint with multiple subsets and same IP address"

GINKGO_SKIP_dual_nft_TEST="should check kube-proxy urls\
|should be rejected when no endpoints exist\
|should check kube-proxy urls\
|should be rejected when no endpoints exist\
|should create a LimitRange with defaults and ensure pod has those defaults applied.\
|should work with the pod containing more than 6 DNS search paths and longer than 256 search list characters"
|should work with the pod containing more than 6 DNS search paths and longer than 256 search list characters\
|should support a Service with multiple ports specified in multiple EndpointSlices\
|should support a Service with multiple endpoint IPs specified in multiple EndpointSlices\
|should mirror a custom Endpoint with multiple subsets and same IP address"

GINKGO_SKIP_ipv4_ebpf_TEST="should serve multiport endpoints from pods\
|should have session affinity work for service with type clusterIP\
Expand Down Expand Up @@ -175,7 +251,12 @@ GINKGO_SKIP_ipv4_ebpf_TEST="should serve multiport endpoints from pods\
|should function for client IP based session affinity: udp\
|should function for endpoint-Service: udp\
|should run through the lifecycle of Pods and PodStatus\
|should update nodePort: http"
|should update nodePort: http\
|should be able to handle large requests: http\
|should mirror a custom Endpoint with multiple subsets and same IP address\
|should support a Service with multiple ports specified in multiple EndpointSlices\
|should support a Service with multiple endpoint IPs specified in multiple EndpointSlices\
|should serve endpoints on same port and different protocols"

GINKGO_SKIP_ipv4_userspacelin_TEST="should preserve source pod IP for traffic thru service cluster IP\
|should be rejected when no endpoints exist\
Expand All @@ -189,6 +270,10 @@ GINKGO_SKIP_ipv4_userspacelin_TEST="should preserve source pod IP for traffic th
|should check kube-proxy urls\
|should preserve source pod IP for traffic thru service cluster IP\
|should have session affinity timeout work for NodePort service\
|should run through the lifecycle of Pods and PodStatus"
|should run through the lifecycle of Pods and PodStatus\
|should support a Service with multiple ports specified in multiple EndpointSlices\
|should support a Service with multiple endpoint IPs specified in multiple EndpointSlices\
|should mirror a custom Endpoint with multiple subsets and same IP address"



0 comments on commit 19049f8

Please sign in to comment.