-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: CRD validation for rule host uniqueness (#56)
* chore: split samples by public and private registries * fix: enforce unique host names and artifact refs on validation rules * fix: update sample names * test: fix test case that was broken because on non unique host names
- Loading branch information
1 parent
2591cc4
commit 8dbdc15
Showing
6 changed files
with
38 additions
and
30 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
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
26 changes: 2 additions & 24 deletions
26
config/samples/ocivalidator-oci.yaml → ...amples/ocivalidator-private-registry.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,22 @@ | ||
apiVersion: validation.spectrocloud.labs/v1alpha1 | ||
kind: OciValidator | ||
metadata: | ||
name: ocivalidator-sample-public-oci-registries | ||
spec: | ||
ociRegistryRules: | ||
# public oci registry artifact with tag | ||
- host: "registry-1.docker.io" | ||
artifacts: | ||
- ref: "bitnamicharts/mysql:9.14.3" | ||
|
||
# public oci registry artifact referenced by default "latest" tag | ||
- host: "registry.hub.docker.com" | ||
artifacts: | ||
- ref: "ahmadibraspectrocloud/kubebuilder-cron" | ||
download: true | ||
|
||
# public ecr registry artifact referenced by default "latest" tag | ||
- host: "public.ecr.aws" | ||
artifacts: | ||
- ref: "u5n5j0b4/oci-test-public" | ||
download: true |
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