Skip to content

Commit

Permalink
Support specifying chart values for conformance test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Quan Tian <[email protected]>
  • Loading branch information
tnqn committed Jun 1, 2023
1 parent 1df3ac4 commit 9a3cf0c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
antrea-version:
description: The Antrea version to test. It could be a SHA-1 value, a branch, or a tag (e.g. a7b012b, release-1.12, v1.12.0). The main branch will be used if empty.
required: false
antrea-values:
description: The Antrea Chart values. Multiple values can be separated with commas (e.g. key1=val1,key2=val2).
required: false
k8s-version:
description: The K8s version (e.g. v1.27.1) to test. Kind's default K8s version will be used if empty.
required: false
Expand Down Expand Up @@ -55,6 +58,7 @@ jobs:
if: ${{ steps.check-release.outputs.released == 'false' }}
run: |
./hack/build-antrea-linux-all.sh --pull
VERSION=0.0.0 ./hack/generate-helm-release.sh --out ./
- name: Install Kind
run: |
curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64
Expand All @@ -69,9 +73,12 @@ jobs:
if [ ${{ steps.check-release.outputs.released }} == 'true' ]; then
helm repo add antrea https://charts.antrea.io
helm repo update
helm install --namespace kube-system antrea antrea/antrea --version "${{ inputs.antrea-version }}"
helm install --namespace kube-system antrea antrea/antrea --version "${{ inputs.antrea-version }}" \
--set "${{ inputs.antrea-values }}"
else
kubectl apply -f build/yamls/antrea.yml
helm install --namespace kube-system antrea ./antrea-chart.tgz \
--set "image.repository=antrea/antrea-ubuntu,image.tag=latest" \
--set "${{ inputs.antrea-values }}"
fi
kubectl rollout status -n kube-system ds/antrea-agent --timeout=5m
- name: Run e2e tests
Expand Down

0 comments on commit 9a3cf0c

Please sign in to comment.