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:
parent
70175ae5e8
commit
1786cb8bc8
1 changed files with 6 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue