Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: run matrix of Kubernetes versions #150

Merged
merged 4 commits into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/updatecli/manifest-major.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ sources:
pattern: "x.x.x"
transformers:
- trimprefix: "v"
kind:
kind: githubRelease
spec:
owner: kubernetes-sigs
repository: kind
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
versionFilter:
kind: semver
pattern: "x.x.x"
conditions: {}
targets:
agent-common:
Expand Down Expand Up @@ -76,3 +85,24 @@ targets:
file: ".github/workflows/worker-lint-and-test.yaml"
key: "jobs.lint-test.steps[1].with.version"
sourceid: helm
kind-agent:
name: bump kind version
kind: yaml
spec:
file: ".github/workflows/agent-lint-and-test.yaml"
key: "jobs.lint-test.steps[4].with.version"
sourceid: kind
kind-server:
name: bump kind version
kind: yaml
spec:
file: ".github/workflows/server-lint-and-test.yaml"
key: "jobs.lint-test.steps[4].with.version"
sourceid: kind
kind-worker:
name: bump kind version
kind: yaml
spec:
file: ".github/workflows/worker-lint-and-test.yaml"
key: "jobs.lint-test.steps[4].with.version"
sourceid: kind
21 changes: 15 additions & 6 deletions .github/updatecli/manifest-minor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ sources:
pattern: "3.x.x"
transformers:
- trimprefix: "v"
kind:
kind: githubRelease
spec:
owner: kubernetes-sigs
repository: kind
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
versionFilter:
kind: semver
pattern: "x.x.x"
conditions: {}
targets:
agent-common:
Expand Down Expand Up @@ -60,19 +69,19 @@ targets:
kind: yaml
spec:
file: ".github/workflows/agent-lint-and-test.yaml"
key: "jobs.lint-test.steps[1].with.version"
sourceid: helm
key: "jobs.lint-test.steps[4].with.version"
sourceid: kind
helm-server:
name: bump helm version
kind: yaml
spec:
file: ".github/workflows/server-lint-and-test.yaml"
key: "jobs.lint-test.steps[1].with.version"
sourceid: helm
key: "jobs.lint-test.steps[4].with.version"
sourceid: kind
helm-worker:
name: bump helm version
kind: yaml
spec:
file: ".github/workflows/worker-lint-and-test.yaml"
key: "jobs.lint-test.steps[1].with.version"
sourceid: helm
key: "jobs.lint-test.steps[4].with.version"
sourceid: kind
11 changes: 11 additions & 0 deletions .github/workflows/agent-lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ on:

jobs:
lint-test:
name: "lint-test (${{ matrix.kubernetes }})"
runs-on: ubuntu-latest
strategy:
matrix:
kubernetes:
- "1.25.8"
- "1.26.3"
- "1.27.0"
fail-fast: false
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand All @@ -27,6 +35,9 @@ jobs:

- name: Create kind cluster
uses: helm/kind-action@v1.5.0
with:
version: v0.18.0
node_image: "kindest/node:v${{ matrix.kubernetes }}"

- name: Create API Secret for Agent Chart
run: |
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/server-lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ on:

jobs:
lint-test:
name: "lint-test (${{ matrix.kubernetes }})"
runs-on: ubuntu-latest
strategy:
matrix:
kubernetes:
- "1.25.8"
- "1.26.3"
- "1.27.0"
fail-fast: false
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand All @@ -27,6 +35,9 @@ jobs:

- name: Create kind cluster
uses: helm/kind-action@v1.5.0
with:
version: v0.18.0
node_image: "kindest/node:v${{ matrix.kubernetes }}"

- name: Run chart-testing (install)
run: ct install --config .github/linters/server-ct.yaml --helm-extra-set-args "--set=postgresql.auth.password=TESTING"
11 changes: 11 additions & 0 deletions .github/workflows/worker-lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ on:

jobs:
lint-test:
name: "lint-test (${{ matrix.kubernetes }})"
runs-on: ubuntu-latest
strategy:
matrix:
kubernetes:
- "1.25.8"
- "1.26.3"
- "1.27.0"
fail-fast: false
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand All @@ -27,6 +35,9 @@ jobs:

- name: Create kind cluster
uses: helm/kind-action@v1.5.0
with:
version: v0.18.0
node_image: "kindest/node:v${{ matrix.kubernetes }}"

- name: Create API Secret for Agent Chart
run: |
Expand Down