Skip to content

Inject env vars via webhook #2432

Inject env vars via webhook

Inject env vars via webhook #2432

Workflow file for this run

name: verify api CRDs
on:
pull_request:
jobs:
verify-api-crds:
defaults:
run:
working-directory: ./api
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: install controller-gen
run: make controller-gen
- name: Check API CRDs
run: make generate && make manifests
- name: Verify Generate
run: |
if [[ $(git diff --exit-code) ]]; then
git diff
echo "api CRDs are not up to date. Please run 'make generate && make manifests' and commit the changes."
exit 1
fi
- name: Generate client files
run: make generate-client
- name: Verify Generate
run: |
if [[ $(git diff --exit-code) ]]; then
git diff
echo "client files are not up to date. Please run 'make generate-client' and commit the changes."
exit 1
fi