chore: modify development cluster setup to support loadbalancer #781
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and test charts - matrix | |
on: pull_request | |
jobs: | |
# runs for all charts other than lagoon-test, which is excluded in | |
# default.ct.yaml | |
lint-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
kindest_node_version: | |
- v1.23.17@sha256:14d0a9a892b943866d7e6be119a06871291c517d279aedb816a4b4bc0ec0a5b3 | |
- v1.24.17@sha256:bad10f9b98d54586cba05a7eaa1b61c6b90bfc4ee174fdc43a7b75ca75c95e51 | |
- v1.25.16@sha256:e8b50f8e06b44bb65a93678a65a26248fae585b3d3c2a669e5ca6c90c69dc519 | |
- v1.26.14@sha256:5d548739ddef37b9318c70cb977f57bf3e5015e4552be4e27e57280a8cbb8e4f | |
- v1.27.11@sha256:681253009e68069b8e01aad36a1e0fa8cf18bb0ab3e5c4069b2e65cafdd70843 | |
- v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: Set up chart-testing dependencies | |
run: sudo apt-get -y install python3-wheel | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --config ./default.ct.yaml) | |
if [[ "$changed" ]]; then | |
echo "changed=true" >> $GITHUB_OUTPUT | |
echo "$changed" | |
fi | |
- name: Run chart-testing (lint) | |
run: ct lint --config ./default.ct.yaml | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
with: | |
version: v0.22.0 | |
node_image: kindest/node:${{ matrix.kindest_node_version }} | |
if: | | |
(steps.list-changed.outputs.changed == 'true') || | |
(contains(github.event.pull_request.labels.*.name, 'needs-testing')) | |
- name: Run chart-testing (install) | |
run: ct install --config ./default.ct.yaml --helm-extra-args "--timeout 30m" | |
- name: Run chart-testing (needs-testing) | |
run: ct install --config ./default.ct.yaml --helm-extra-args "--timeout 30m" --all | |
if: | | |
(contains(github.event.pull_request.labels.*.name, 'needs-testing')) |