1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: bool fields in image verification types (#4053)

* refactor: add policy event listener in ur controller (#4012)

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
(cherry picked from commit cd1fa030ee)
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>

* fix: bool fields in image verification types

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-06-02 21:05:23 +02:00 committed by GitHub
parent 70175ae5e8
commit 1786cb8bc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,18 +68,18 @@ type ImageVerification struct {
// MutateDigest enables replacement of image tags with digests.
// Defaults to true.
// +kubebuilder:default=true
// +kubebuilder:validation:Required
MutateDigest bool `json:"mutateDigest,omitempty" yaml:"mutateDigest,omitempty"`
// +kubebuilder:validation:Optional
MutateDigest bool `json:"mutateDigest" yaml:"mutateDigest"`
// VerifyDigest validates that images have a digest.
// +kubebuilder:default=true
// +kubebuilder:validation:Required
VerifyDigest bool `json:"verifyDigest,omitempty" yaml:"verifyDigest,omitempty"`
// +kubebuilder:validation:Optional
VerifyDigest bool `json:"verifyDigest" yaml:"verifyDigest"`
// Required validates that images are verified i.e. have matched passed a signature or attestation check.
// +kubebuilder:default=true
// +kubebuilder:validation:Required
Required bool `json:"required,omitempty" yaml:"required,omitempty"`
// +kubebuilder:validation:Optional
Required bool `json:"required" yaml:"required"`
}
type AttestorSet struct {