From addb4b37aea71f0a90db24696b0ad293c8dbe61c Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Thu, 31 Mar 2022 11:21:41 +0900 Subject: [PATCH] Drop kind for tls --- .github/workflows/kind-e2e-tls.yaml | 185 ---------------------------- 1 file changed, 185 deletions(-) delete mode 100644 .github/workflows/kind-e2e-tls.yaml diff --git a/.github/workflows/kind-e2e-tls.yaml b/.github/workflows/kind-e2e-tls.yaml deleted file mode 100644 index 837fab3d0710..000000000000 --- a/.github/workflows/kind-e2e-tls.yaml +++ /dev/null @@ -1,185 +0,0 @@ -name: KinD e2e tests - tls - -on: - pull_request: - branches: [ 'main', 'release-*' ] - -defaults: - run: - shell: bash - working-directory: ./src/knative.dev/serving - -jobs: - - e2e-tests: - name: e2e tests - runs-on: ubuntu-latest - strategy: - fail-fast: false # Keep running if one leg fails. - matrix: - cluster: - - v1.21.1/kourier - - test-suite: - - ./test/conformance/runtime - - ./test/conformance/api/... - - ./test/e2e - - include: - # Map between K8s and KinD versions. - # This is attempting to make it a bit clearer what's being tested. - # See: https://github.com/kubernetes-sigs/kind/releases - - cluster: v1.21.1/kourier - k8s-version: v1.21.1 - kind-version: v0.11.1 - kind-image-sha: sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 - kingress: kourier - test-flags: "--enable-alpha --enable-beta" - cluster-suffix: c${{ github.run_id }}.local - - env: - GOPATH: ${{ github.workspace }} - GO111MODULE: on - GOFLAGS: -tags=nostackdriver - # https://github.com/google/go-containerregistry/pull/125 allows insecure registry for - # '*.local' hostnames. This works both for `ko` and our own tag-to-digest resolution logic, - # thus allowing us to test without bypassing tag-to-digest resolution. - REGISTRY_NAME: registry.local - REGISTRY_PORT: 5000 - KO_DOCKER_REPO: registry.local:5000/knative - - steps: - - name: Set up Go 1.17.x - uses: actions/setup-go@v2 - with: - go-version: 1.17.x - - - name: Install Dependencies - working-directory: ./ - run: | - echo '::group:: install ko' - curl -L https://github.com/google/ko/releases/download/v0.6.0/ko_0.6.0_Linux_x86_64.tar.gz | tar xzf - ko - chmod +x ./ko - sudo mv ko /usr/local/bin - echo '::endgroup::' - - - name: Check out code onto GOPATH - uses: actions/checkout@v2 - with: - path: ./src/knative.dev/serving - - - name: Install KinD - run: | - set -x - - # Disable swap otherwise memory enforcement doesn't work - # See: https://kubernetes.slack.com/archives/CEKK1KTN2/p1600009955324200 - sudo swapoff -a - sudo rm -f /swapfile - - # Use in-memory storage to avoid etcd server timeouts. - # https://kubernetes.slack.com/archives/CEKK1KTN2/p1615134111016300 - # https://github.com/kubernetes-sigs/kind/issues/845 - sudo mkdir -p /tmp/etcd - sudo mount -t tmpfs tmpfs /tmp/etcd - - curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${{ matrix.kind-version }}/kind-$(uname)-amd64 - chmod +x ./kind - sudo mv kind /usr/local/bin - - - name: Configure KinD Cluster - working-directory: ./src/knative.dev/serving - run: | - set -x - - # KinD configuration. - cat > kind.yaml < 127.0.0.1, to tell `ko` to publish to - # local reigstry, even when pushing $REGISTRY_NAME:$REGISTRY_PORT/some/image - sudo echo "127.0.0.1 $REGISTRY_NAME" | sudo tee -a /etc/hosts - - - name: Install Serving & Ingress - working-directory: ./src/knative.dev/serving - run: | - source ./test/e2e-common.sh - - KIND=1 - INGRESS_CLASS="${{ matrix.kingress }}.ingress.networking.knative.dev" - CLUSTER_DOMAIN="${{ matrix.cluster-suffix }}" - ENABLE_TLS=1 - - knative_setup - test_setup - - echo "INGRESS_CLASS=$INGRESS_CLASS" >> $GITHUB_ENV - echo "CLUSTER_DOMAIN=$CLUSTER_DOMAIN" >> $GITHUB_ENV - echo "SYSTEM_NAMESPACE=$SYSTEM_NAMESPACE" >> $GITHUB_ENV - echo "GATEWAY_OVERRIDE=$GATEWAY_OVERRIDE" >> $GITHUB_ENV - echo "GATEWAY_NAMESPACE_OVERRIDE=$GATEWAY_NAMESPACE_OVERRIDE" >> $GITHUB_ENV - - - name: Run Test - working-directory: ./src/knative.dev/serving - run: | - set -x - - source ./test/e2e-common.sh - - # Exclude the control-plane node, which doesn't seem to expose the nodeport service. - IPS=( $(kubectl get nodes -lkubernetes.io/hostname!=kind-control-plane -ojsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}') ) - # Run the tests tagged as e2e on the KinD cluster. - # TODO: Remove feature toogle when emptyDir is enabled by default - toggle_feature kubernetes.podspec-volumes-emptydir Enabled - go test -race -count=1 -parallel=1 -timeout=30m -tags=e2e ${{ matrix.test-suite }} \ - --ingressendpoint="${IPS[0]}" \ - ${{ matrix.test-flags }} - toggle_feature kubernetes.podspec-volumes-emptydir Disabled