Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Last active October 9, 2023 18:26
Show Gist options
  • Save jsturtevant/0451fbcacdc03711680d0dba0eb669e5 to your computer and use it in GitHub Desktop.
Save jsturtevant/0451fbcacdc03711680d0dba0eb669e5 to your computer and use it in GitHub Desktop.
windows.e2e
export E2E_ARGS="-kubetest.use-ci-artifacts"
export WINDOWS=true
export KUBERNETES_VERSION="latest"
export CONFORMANCE_NODES=4
export WINDOWS_FLAVOR=containerd
export SKIP_CLEANUP=true
./scripts/ci-conformance.sh
# once capz e2e managementcluster is created first time, add these envs:
export SKIP_CREATE_MGMT_CLUSTER=true
export KUBECONFIG=./cluster-api-provider-azure/kubeconfig.e2e
#When using kubetest to build k8s binaries make clean, rm -rf _artifacts, then run kubetest
#helpful links
#https://github.com/kubernetes/kubernetes/blob/master/test/utils/image/manifest.go#L252
#https://github.com/kubernetes/kubernetes/tree/master/test/images#prerequisites
#https://github.com/kubernetes-sigs/windows-testing/blob/master/images/image-repo-list-master
#staging repo: gcr.io/k8s-staging-e2e-test-images/nginx:1.14-1
#may need to set KUBECONFIG
make WHAT="test/e2e/e2e.test"
_output/bin/e2e.test --provider=skeleton --ginkgo.noColor --ginkgo.focus="ReplicationController.*\[Conformance\]" --ginkgo.skip="\[Slow\]" --node-os-distro="windows"
#--delete-namespace-on-failure=false
------
./build/run.sh make WHAT="test/e2e/e2e.test"
curl -L "https://raw.githubusercontent.com/kubernetes-sigs/windows-testing/master/images/image-repo-list-master" -o repo_list
export KUBE_TEST_REPO_LIST=$(pwd)/repo_list
export GINKGO_PARALLEL_NODES=8
#export GINKGO_UNTIL_IT_FAILS=true
export KUBERNETES_PROVIDER=skeleton
./hack/ginkgo-e2e.sh --node-os-distro=windows --ginkgo.focus="Deployment|\[Conformance\]" --ginkgo.skip="\[LinuxOnly\]" --report-dir=/home/jstur/out/kubetest --disable-log-dump=true
# https://github.com/kubernetes-sigs/kind/blob/main/hack/ci/e2e-k8s.sh
# Settings:
# SKIP: ginkgo skip regex
# FOCUS: ginkgo focus regex
# GA_ONLY: true - limit to GA APIs/features as much as possible
# false - (default) APIs and features left at defaults
#
export SKIP="\[Slow\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|PodSecurityPolicy|LoadBalancer|load.balancer|Simple.pod.should.support.exec.through.an.HTTP.proxy|subPath.should.support.existing|NFS|nfs|inline.execution.and.attach|should.be.rejected.when.no.endpoints.exist"
cd ~/go/src/k8s.io/kubernetes/
curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment