feat: allow setting mutating webhook failurepolicy and objectSelector via helm #2246
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: Validate CRD Docs | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
check-helm-docs: | |
name: Check crd documentation values | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Cache build tools | |
id: cache-build-tools | |
uses: actions/cache@v4 | |
with: | |
path: ./bin | |
key: build-tools-${{ github.ref_name }} | |
- name: Check if crds.md is up to date | |
run: | | |
cp ./docs/crds.md ./docs/crds-old.md | |
make generate-crdocs | |
cd ./docs/ | |
if ! cmp --quiet ./crds-old.md ./crds.md; then | |
echo "The crd values have changes that are not reflected in the documentation. Please use make generate-crdocs to re-generate the docs." | |
echo "" | |
echo "=========== Diff ===========" | |
diff -u ./crds-old.md ./crds.md | |
exit 1 | |
else | |
echo "" | |
echo "CRDs documentation is correct!" | |
fi |