Skip to content

Commit

Permalink
Merge pull request #10 from dexidp/kube-versions
Browse files Browse the repository at this point in the history
Add support for Kubernetes 1.14
  • Loading branch information
sagikazarmark committed Feb 17, 2021
2 parents 9990636 + d8750d2 commit 0d0d04a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 11 deletions.
46 changes: 38 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.changes.outputs.changed }}

steps:
- name: Checkout
Expand All @@ -29,10 +31,22 @@ jobs:
- name: Lint
run: ct lint

- name: Detect changes
id: changes
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
test:
name: Test
runs-on: ubuntu-latest
needs: lint
if: needs.lint.outputs.changed == 'true'
strategy:
matrix:
kube: ["1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20"]

steps:
- name: Checkout
Expand All @@ -53,18 +67,34 @@ jobs:
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.0.1

- name: List changes
id: changes
# See https://github.com/kubernetes-sigs/kind/releases/tag/v0.10.0
- name: Determine KinD node image version
id: node_image
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
case ${{ matrix.kube }} in
1.14)
NODE_IMAGE=kindest/node:v1.14.10@sha256:3fbed72bcac108055e46e7b4091eb6858ad628ec51bf693c21f5ec34578f6180 ;;
1.15)
NODE_IMAGE=kindest/node:v1.15.12@sha256:67181f94f0b3072fb56509107b380e38c55e23bf60e6f052fbd8052d26052fb5 ;;
1.16)
NODE_IMAGE=kindest/node:v1.16.15@sha256:c10a63a5bda231c0a379bf91aebf8ad3c79146daca59db816fb963f731852a99 ;;
1.17)
NODE_IMAGE=kindest/node:v1.17.17@sha256:7b6369d27eee99c7a85c48ffd60e11412dc3f373658bc59b7f4d530b7056823e ;;
1.18)
NODE_IMAGE=kindest/node:v1.18.15@sha256:5c1b980c4d0e0e8e7eb9f36f7df525d079a96169c8a8f20d8bd108c0d0889cc4 ;;
1.19)
NODE_IMAGE=kindest/node:v1.19.7@sha256:a70639454e97a4b733f9d9b67e12c01f6b0297449d5b9cbbef87473458e26dca ;;
1.20)
NODE_IMAGE=kindest/node:v1.20.2@sha256:8f7ea6e7642c0da54f04a7ee10431549c0257315b3a634f6ef2fecaaedb19bab ;;
esac
echo "::set-output name=image::$NODE_IMAGE"
- name: Create KinD cluster
uses: helm/kind-action@v1.1.0
# Only create a kind cluster if there are chart changes to test.
if: steps.changes.outputs.changed == 'true'
with:
version: v0.10.0
node_image: ${{ steps.node_image.outputs.image }}

- name: Install
run: ct install
6 changes: 3 additions & 3 deletions charts/dex/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
type: application
name: dex
version: 0.0.1
version: 0.0.2
appVersion: "2.28.0"
kubeVersion: ">=1.16.0-0"
kubeVersion: ">=1.14.0-0"
description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors
icon: https://dexidp.io/favicon.png
keywords:
Expand All @@ -21,7 +21,7 @@ maintainers:
url: https://sagikazarmark.hu
annotations:
artifacthub.io/changes: |
- First chart release
- Lower the minimum required Kubernetes version to 1.14
artifacthub.io/images: |
- name: dex
image: ghcr.io/dexidp/dex:v2.28.0

0 comments on commit 0d0d04a

Please sign in to comment.