Skip to content

Commit

Permalink
Add e2e to test apply crds on 1.16 version cluster
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Dec 1, 2022
1 parent 55691c2 commit 9ff2374
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,28 @@ jobs:
go-version: ${{ env.GO_VERSION }}
- name: integration
run: make test-integration

e2e:
name: e2e
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/api
- name: setup kind
uses: engineerd/[email protected]
with:
version: v0.6.0 # The default node image is a Kubernetes v1.16.3, see https://github.com/kubernetes-sigs/kind/releases/tag/v0.6.0
name: cluster1
- name: Testing applying CRDs on kubernetes 1.16.3 managed cluster
run: |
kubectl cluster-info
kubectl get pods -n kube-system
kubectl version
echo "current-context:" $(kubectl config current-context)
echo "environment-kubeconfig:" ${KUBECONFIG}
kubectl apply -f operator/v1/0001_00_operator.open-cluster-management.io_klusterlets.crd.yaml
kubectl apply -f cluster/v1alpha1/0001_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml
kubectl apply -f work/v1/0001_01_work.open-cluster-management.io_appliedmanifestworks.crd.yaml

0 comments on commit 9ff2374

Please sign in to comment.