-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌱 add verify-crd-compatibility make target and GHA (#471)
* (ci): add verify-crd-compatibility make target and GHA using the crd-diff tool with the same configuration as recently merged into operator-controller Signed-off-by: everettraven <[email protected]> * improve local developer experience Signed-off-by: everettraven <[email protected]> --------- Signed-off-by: everettraven <[email protected]>
- Loading branch information
1 parent
2bfc219
commit e711559
Showing
7 changed files
with
470 additions
and
0 deletions.
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
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,5 @@ | ||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT | ||
|
||
go 1.22.5 | ||
|
||
require github.com/everettraven/crd-diff v0.1.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,18 @@ | ||
name: crd-diff | ||
on: | ||
pull_request: | ||
jobs: | ||
crd-diff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Run make verify-crd-compatibility | ||
run: make verify-crd-compatibility CRD_DIFF_ORIGINAL_REF=${{ github.event.pull_request.base.sha }} CRD_DIFF_UPDATED_SOURCE="git://${{ github.event.pull_request.head.sha }}?path=config/base/crd/bases/olm.operatorframework.io_clustercatalogs.yaml" | ||
|
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
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,109 @@ | ||
checks: | ||
crd: | ||
scope: | ||
enabled: true | ||
existingFieldRemoval: | ||
enabled: true | ||
storedVersionRemoval: | ||
enabled: true | ||
version: | ||
sameVersion: | ||
enabled: true | ||
unhandledFailureMode: "Closed" | ||
enum: | ||
enabled: true | ||
removalEnforcement: "Strict" | ||
additionEnforcement: "Strict" | ||
default: | ||
enabled: true | ||
changeEnforcement: "Strict" | ||
removalEnforcement: "Strict" | ||
additionEnforcement: "Strict" | ||
required: | ||
enabled: true | ||
newEnforcement: "Strict" | ||
type: | ||
enabled: true | ||
changeEnforcement: "Strict" | ||
maximum: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
decreaseEnforcement: "Strict" | ||
maxItems: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
decreaseEnforcement: "Strict" | ||
maxProperties: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
decreaseEnforcement: "Strict" | ||
maxLength: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
decreaseEnforcement: "Strict" | ||
minimum: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
increaseEnforcement: "Strict" | ||
minItems: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
increaseEnforcement: "Strict" | ||
minProperties: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
increaseEnforcement: "Strict" | ||
minLength: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
increaseEnforcement: "Strict" | ||
servedVersion: | ||
enabled: true | ||
unhandledFailureMode: "Closed" | ||
enum: | ||
enabled: true | ||
removalEnforcement: "Strict" | ||
additionEnforcement: "Strict" | ||
default: | ||
enabled: true | ||
changeEnforcement: "Strict" | ||
removalEnforcement: "Strict" | ||
additionEnforcement: "Strict" | ||
required: | ||
enabled: true | ||
newEnforcement: "Strict" | ||
type: | ||
enabled: true | ||
changeEnforcement: "Strict" | ||
maximum: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
decreaseEnforcement: "Strict" | ||
maxItems: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
decreaseEnforcement: "Strict" | ||
maxProperties: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
decreaseEnforcement: "Strict" | ||
maxLength: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
decreaseEnforcement: "Strict" | ||
minimum: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
increaseEnforcement: "Strict" | ||
minItems: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
increaseEnforcement: "Strict" | ||
minProperties: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
increaseEnforcement: "Strict" | ||
minLength: | ||
enabled: true | ||
additionEnforcement: "Strict" | ||
increaseEnforcement: "Strict" |