Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

secret-store-csi-driver: prepend iptables fixes for #23741 #23743

Merged
merged 1 commit into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- runner.sh
args:
- make
- test-style
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make test-style
annotations:
testgrid-dashboards: sig-auth-secrets-store-csi-driver, sig-auth-secrets-store-csi-driver-presubmit
testgrid-tab-name: pr-secrets-store-csi-driver-lint
Expand All @@ -37,10 +40,13 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- runner.sh
args:
- make
- test
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make test
securityContext:
privileged: true
annotations:
Expand All @@ -62,10 +68,13 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- runner.sh
args:
- make
- sanity-test
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make sanity-test
securityContext:
privileged: true
annotations:
Expand Down Expand Up @@ -95,6 +104,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make container image-scan
# docker-in-docker needs privileged mode
securityContext:
Expand Down Expand Up @@ -134,6 +144,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy e2e-vault
securityContext:
privileged: true
Expand Down Expand Up @@ -167,6 +178,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy e2e-azure
securityContext:
privileged: true
Expand Down Expand Up @@ -198,8 +210,13 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- "./test/scripts/e2e_provider.sh"
- runner.sh
args:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
"./test/scripts/e2e_provider.sh"
securityContext:
privileged: true
resources:
Expand Down Expand Up @@ -236,6 +253,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
IS_YAML_TEST=true make e2e-bootstrap e2e-deploy-manifest e2e-azure
securityContext:
privileged: true
Expand Down Expand Up @@ -274,27 +292,28 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- kubetest
- runner.sh
args:
# Generic e2e test args
- --test
- --up
- --down
- --build=quick
- --dump=$(ARTIFACTS)
# Azure-specific test args
- --provider=skeleton
- --deployment=aksengine
- --aksengine-admin-username=azureuser
- --aksengine-creds=$(AZURE_CREDENTIALS)
- --aksengine-orchestratorRelease=1.21
- --aksengine-public-key=$(K8S_SSH_PUBLIC_KEY_PATH)
- --aksengine-private-key=$(K8S_SSH_PRIVATE_KEY_PATH)
- --aksengine-template-url=https://raw.githubusercontent.com/kubernetes-sigs/secrets-store-csi-driver/main/test/bats/tests/azure/job_templates/kubernetes_windows.json
- --aksengine-download-url=https://aka.ms/aks-engine/aks-engine-k8s-e2e.tar.gz
# Specific test args
- --test-secrets-store-csi-driver
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
kubetest \
--test \
--up \
--down \
--build=quick \
--dump=$(ARTIFACTS) \
--provider=skeleton \
--deployment=aksengine \
--aksengine-admin-username=azureuser \
--aksengine-creds=$(AZURE_CREDENTIALS) \
--aksengine-orchestratorRelease=1.21 \
--aksengine-public-key=$(K8S_SSH_PUBLIC_KEY_PATH) \
--aksengine-private-key=$(K8S_SSH_PRIVATE_KEY_PATH) \
--aksengine-template-url=https://raw.githubusercontent.com/kubernetes-sigs/secrets-store-csi-driver/main/test/bats/tests/azure/job_templates/kubernetes_windows.json \
--aksengine-download-url=https://aka.ms/aks-engine/aks-engine-k8s-e2e.tar.gz \
--test-secrets-store-csi-driver
securityContext:
privileged: true
env:
Expand Down Expand Up @@ -333,6 +352,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy e2e-gcp
securityContext:
privileged: true
Expand Down Expand Up @@ -371,6 +391,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make setup-eks-cluster e2e-aws e2e-eks-cleanup
securityContext:
privileged: true
Expand Down Expand Up @@ -402,6 +423,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make build build-windows
annotations:
testgrid-dashboards: sig-auth-secrets-store-csi-driver, sig-auth-secrets-store-csi-driver-presubmit
Expand All @@ -426,8 +448,13 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- "./test/scripts/e2e_provider.sh"
- runner.sh
args:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
"./test/scripts/e2e_provider.sh"
securityContext:
privileged: true
env:
Expand Down Expand Up @@ -460,8 +487,13 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- "./test/scripts/e2e_provider.sh"
- runner.sh
args:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
"./test/scripts/e2e_provider.sh"
securityContext:
privileged: true
env:
Expand Down Expand Up @@ -494,8 +526,13 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- "./test/scripts/e2e_provider.sh"
- runner.sh
args:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
"./test/scripts/e2e_provider.sh"
securityContext:
privileged: true
env:
Expand Down Expand Up @@ -528,8 +565,13 @@ presubmits:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20210917-ee1e7c845b-master
command:
- runner.sh
- "./test/scripts/e2e_provider.sh"
- runner.sh
args:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
"./test/scripts/e2e_provider.sh"
securityContext:
privileged: true
env:
Expand Down Expand Up @@ -573,6 +615,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make setup-eks-cluster e2e-helm-deploy-release e2e-aws e2e-eks-cleanup
securityContext:
privileged: true
Expand Down Expand Up @@ -613,6 +656,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy-release e2e-vault
securityContext:
privileged: true
Expand Down Expand Up @@ -654,6 +698,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy-release e2e-azure
securityContext:
privileged: true
Expand Down Expand Up @@ -694,6 +739,7 @@ presubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy-release e2e-gcp
securityContext:
privileged: true
Expand Down Expand Up @@ -734,6 +780,7 @@ postsubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy e2e-vault
securityContext:
privileged: true
Expand Down Expand Up @@ -774,6 +821,7 @@ postsubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy e2e-azure
securityContext:
privileged: true
Expand Down Expand Up @@ -813,6 +861,7 @@ postsubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make e2e-bootstrap e2e-helm-deploy e2e-gcp
securityContext:
privileged: true
Expand Down Expand Up @@ -854,6 +903,7 @@ postsubmits:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make setup-eks-cluster e2e-aws e2e-eks-cleanup
securityContext:
privileged: true
Expand Down Expand Up @@ -893,6 +943,7 @@ periodics:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
make container image-scan
# docker-in-docker needs privileged mode
securityContext:
Expand Down Expand Up @@ -929,6 +980,7 @@ periodics:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
HELM_CHART_DIR=$(ls -h charts/*.tgz | sort --version-sort --field-separator=- --key=5 | tail -n 1) make e2e-bootstrap e2e-helm-deploy-release e2e-azure && HELM_CHART_DIR=manifest_staging/charts/secrets-store-csi-driver make e2e-helm-upgrade e2e-azure
# docker-in-docker needs privileged mode
securityContext:
Expand Down Expand Up @@ -963,6 +1015,7 @@ periodics:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
INPLACE_UPGRADE_TEST=true make e2e-bootstrap e2e-mock-provider-container e2e-helm-deploy-release e2e-provider-deploy e2e-provider && INPLACE_UPGRADE_TEST=true make e2e-helm-upgrade e2e-provider
# docker-in-docker needs privileged mode
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ periodics:
- bash
- -c
- >-
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu &&
HELM_CHART_DIR=$(ls -h charts/*.tgz | sort --version-sort --field-separator=- --key=5 | tail -n 1) make e2e-bootstrap e2e-helm-deploy-release e2e-azure && HELM_CHART_DIR=manifest_staging/charts/secrets-store-csi-driver make e2e-helm-upgrade e2e-azure
# docker-in-docker needs privileged mode
securityContext:
Expand Down