Skip to content

Commit 77e4d47

Browse files
author
Per Goncalves da Silva
committed
Add webhook rule checker to validator
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
1 parent 023157a commit 77e4d47

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/operator-controller/rukpak/render/registryv1/registryv1.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var BundleValidator = render.BundleValidator{
2727
validators.CheckWebhookNameIsDNS1123SubDomain,
2828
validators.CheckConversionWebhookCRDReferenceUniqueness,
2929
validators.CheckConversionWebhooksReferenceOwnedCRDs,
30+
validators.CheckWebhookRules,
3031
}
3132

3233
// ResourceGenerators a slice of ResourceGenerators required to generate plain resource manifests for

internal/operator-controller/rukpak/render/registryv1/registryv1_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func Test_BundleValidatorHasAllValidationFns(t *testing.T) {
3131
validators.CheckWebhookNameIsDNS1123SubDomain,
3232
validators.CheckConversionWebhookCRDReferenceUniqueness,
3333
validators.CheckConversionWebhooksReferenceOwnedCRDs,
34+
validators.CheckWebhookRules,
3435
}
3536
actualValidationFns := registryv1.BundleValidator
3637

0 commit comments

Comments
 (0)