-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default to openshift platform in Makefile (#96)
To avoid flip-flopping between kubernetes and openshift in generated manifests. Openshift is also the main use-case at the moment for this operator. We also add a new Github workflow to validate manifest generation for each PR. See also #94 for a related discussion. Signed-off-by: Antonin Bas <[email protected]>
- Loading branch information
1 parent
4cf0283
commit aa911f4
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Generate manifests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Generate manifests | ||
run: make manifests | ||
- name: Check for any unexpected changes | ||
run: | | ||
diff="$(git status --porcelain)" | ||
if [ ! -z "$diff" ]; then | ||
>&2 echo "The generated code is not up-to-date" | ||
>&2 echo "The different files are:" | ||
>&2 echo "$diff" | ||
>&2 echo "You can regenerate files locally with 'make manifests', and commit the changes" | ||
exit 1 | ||
fi |
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