Skip to content

Commit

Permalink
fix scheduled submariner e2e (#2469)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian authored Mar 16, 2023
1 parent c66a93a commit e9dd289
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ concurrency:
env:
GOSEC_VERSION: '2.15.0'
HELM_VERSION: v3.11.1
SUBMARINER_VERSION: v0.13.4

jobs:
build-kube-ovn-base:
Expand Down Expand Up @@ -1578,10 +1579,10 @@ jobs:
install_only: true

- name: Install submariner subctl
run: |
curl -Ls https://get.submariner.io | VERSION=v0.13.4 bash
sudo chmod +x ~/.local/bin/subctl
sudo mv ~/.local/bin/subctl /usr/bin/
env:
VERSION: ${{ env.SUBMARINER_VERSION }}
DESTDIR: /usr/local/bin
run: curl -Ls https://get.submariner.io | bash

- name: Download image
uses: actions/download-artifact@v3
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/scheduled-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ concurrency:

env:
HELM_VERSION: v3.11.1
SUBMARINER_VERSION: v0.13.4

jobs:
k8s-conformance-e2e:
Expand Down Expand Up @@ -1217,9 +1218,6 @@ jobs:
matrix:
branch:
- master
- release-1.11
- release-1.10
- release-1.9
steps:
- uses: actions/checkout@v3

Expand All @@ -1239,10 +1237,10 @@ jobs:
install_only: true

- name: Install submariner subctl
run: |
curl -Ls https://get.submariner.io | VERSION=v0.13.4 bash
sudo chmod +x ~/.local/bin/subctl
sudo mv ~/.local/bin/subctl /usr/bin/
env:
VERSION: ${{ env.SUBMARINER_VERSION }}
DESTDIR: /usr/local/bin
run: curl -Ls https://get.submariner.io | bash

- name: Create kind cluster
working-directory: test/e2e/kube-ovn/branches/${{ matrix.branch }}
Expand Down
14 changes: 4 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -573,16 +573,10 @@ kind-install-lb-svc: kind-load-image kind-untaint-control-plane
kubectl describe no

.PHONY: kind-install-webhook
kind-install-webhook: kind-load-image kind-untaint-control-plane
$(call docker_ensure_image_exists,$(CERT_MANAGER_CONTROLLER))
$(call kind_load_image,kube-ovn,$(CERT_MANAGER_CONTROLLER))
$(call docker_ensure_image_exists,$(CERT_MANAGER_CAINJECTOR))
$(call kind_load_image,kube-ovn,$(CERT_MANAGER_CAINJECTOR))
$(call docker_ensure_image_exists,$(CERT_MANAGER_WEBHOOK))
$(call kind_load_image,kube-ovn,$(CERT_MANAGER_WEBHOOK))

sed 's/VERSION=.*/VERSION=$(VERSION)/' dist/images/install.sh | bash
kubectl describe no
kind-install-webhook: kind-install
$(call kind_load_image,kube-ovn,$(CERT_MANAGER_CONTROLLER),1)
$(call kind_load_image,kube-ovn,$(CERT_MANAGER_CAINJECTOR),1)
$(call kind_load_image,kube-ovn,$(CERT_MANAGER_WEBHOOK),1)

kubectl apply -f "$(CERT_MANAGER_YAML)"
kubectl rollout status deployment/cert-manager -n cert-manager --timeout 120s
Expand Down

0 comments on commit e9dd289

Please sign in to comment.