Skip to content

Commit

Permalink
Merge pull request #16 from consideRatio/pr/ci-fix-k3s-channel
Browse files Browse the repository at this point in the history
Fix k3s-channel implementation for v1.16 specifically
  • Loading branch information
consideRatio authored Dec 31, 2020
2 parents 7d41a69 + a67055e commit 750f37c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ jobs:
k3s-channel: latest
helm-version: ""
- k3s-version: ""
k3s-channel: v1.19
k3s-channel: stable
helm-version: v3.4.2
- k3s-version: ""
k3s-channel: v1.18
helm-version: v3.3.4
- k3s-version: v1.17.13+k3s1
k3s-channel: ""
helm-version: v3.2.4
- k3s-version: v1.16.15+k3s1
k3s-channel: ""
- k3s-version: ""
k3s-channel: v1.16
helm-version: v3.1.3
steps:
- uses: actions/checkout@v2
Expand All @@ -66,7 +66,7 @@ jobs:
# These options should be enabled
kubectl get --namespace kube-system deploy metrics-server
# Problem with 1.16, ignore since it'll be dropped soon
if [[ "${{ matrix.k3s-version }}${{ matrix.k3s-channel }}" != v1.16.* ]]; then
if [[ "${{ matrix.k3s-version }}${{ matrix.k3s-channel }}" != v1.16* ]]; then
kubectl get --namespace kube-system deploy traefik
fi
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ runs:
shell: bash
- name: Setup k3s ${{ inputs.k3s-version }}${{ inputs.k3s-channel }}
run: |
if [[ "${{ inputs.k3s-version }}${{ inputs.k3s-channel }}" == v1.16.* ]]; then
if [[ "${{ inputs.k3s-version }}${{ inputs.k3s-channel }}" == v1.16* ]]; then
k3s_disable_command=--no-deploy
else
k3s_disable_command=--disable
Expand Down Expand Up @@ -140,7 +140,7 @@ runs:
kubectl rollout status --watch --timeout 300s deployment/metrics-server -n kube-system
fi
# Problem with 1.16, ignore since it'll be dropped soon
if [[ "${{ inputs.traefik-enabled }}" == true && "${{ inputs.k3s-version }}${{ inputs.k3s-channel }}" != v1.16.* ]]; then
if [[ "${{ inputs.traefik-enabled }}" == true && "${{ inputs.k3s-version }}${{ inputs.k3s-channel }}" != v1.16* ]]; then
kubectl rollout status --watch --timeout 300s deployment/traefik -n kube-system
fi
shell: bash
Expand Down

0 comments on commit 750f37c

Please sign in to comment.