Fixing 'Additional property enabled is not allowed' when using gotenb… #116
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 | |
on: pull_request | |
jobs: | |
helm-tools: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "stable" | |
# We don't have go.sum file, but if this file changes we might as well download new dependencies. | |
cache-dependency-path: .github/workflows/test.yml | |
- name: Install helm-tools | |
run: | | |
go install github.com/cert-manager/[email protected] | |
- name: Run helm-tools | |
run: | | |
pushd charts/gotenberg | |
helm-tool lint -e values.linter.exceptions | |
helm-tool schema | jq . > generated-schema.json | |
CURRENT_SCHEMA=$(cat values.schema.json) | |
GENERATED_SCHEMA=$(cat generated-schema.json) | |
if [ "$CURRENT_SCHEMA" != "$GENERATED_SCHEMA" ]; then | |
echo "Outdated schema, regenerate it with 'helm-tool schema > values.schema.json'" | |
exit 1 | |
fi | |
popd | |
lint-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
k8s: | |
- v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865 | |
- v1.30.4@sha256:976ea815844d5fa93be213437e3ff5754cd599b040946b5cca43ca45c2047114 | |
- v1.30.3@sha256:bf91e1ef2f7d92bb7734b2b896b3dddea98f0496b34d96e37dd5d7df331b7e56 | |
- v1.29.8@sha256:d46b7aa29567e93b27f7531d258c372e829d7224b25e3fc6ffdefed12476d3aa | |
- v1.29.7@sha256:f70ab5d833fca132a100c1f95490be25d76188b053f49a3c0047ff8812360baf | |
- v1.28.13@sha256:45d319897776e11167e4698f6b14938eb4d52eb381d9e3d7a9086c16c69a8110 | |
- v1.28.12@sha256:fa0e48b1e83bb8688a5724aa7eebffbd6337abd7909ad089a2700bf08c30c6ea | |
- v1.27.17@sha256:3fd82731af34efe19cd54ea5c25e882985bafa2c9baefe14f8deab1737d9fabe | |
- v1.26.15@sha256:1cc15d7b1edd2126ef051e359bf864f37bbcf1568e61be4d2ed1df7a3e87b354 | |
- v1.25.16@sha256:6110314339b3b44d10da7d27881849a87e092124afab5956f2e10ecdb463b025 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
check-latest: true | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Run chart-testing (lint) | |
if: steps.list-changed.outputs.changed == 'true' | |
run: ct lint --target-branch ${{ github.event.repository.default_branch }} | |
- name: Create kind ${{ matrix.k8s }} cluster | |
if: steps.list-changed.outputs.changed == 'true' | |
uses: helm/[email protected] | |
with: | |
version: v0.24.0 | |
node_image: kindest/node:${{ matrix.k8s }} | |
- name: Run chart-testing (install) | |
if: steps.list-changed.outputs.changed == 'true' | |
run: ct install --helm-extra-set-args "--values=ci-values.yaml" --upgrade --target-branch ${{ github.event.repository.default_branch }} |