-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌱 Add a make target and check in CI to verify CRD compatibility (#1449)
* add make target for running crd-diff Signed-off-by: everettraven <[email protected]> * add GHA to run crd-diff Signed-off-by: everettraven <[email protected]> * add crd-diff config file and update make target to inject it Signed-off-by: everettraven <[email protected]> * update to official released version of crd-diff Signed-off-by: everettraven <[email protected]> --------- Signed-off-by: everettraven <[email protected]>
- Loading branch information
1 parent
b9294a7
commit 2b4c083
Showing
7 changed files
with
472 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_REF=${{ github.event.pull_request.head.sha }} | ||
|
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" |