1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-29 02:45:06 +00:00

feat: remove remaining yaml markers (#11020)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2024-09-05 15:43:10 +02:00 committed by GitHub
parent 37ab9ba824
commit 209fd8d90a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View file

@ -220,7 +220,7 @@ type ContextAPICall struct {
// Default is an optional arbitrary JSON object that the context may take if the apiCall
// returns error
// +optional
Default *apiextv1.JSON `json:"default,omitempty" yaml:"default,omitempty"`
Default *apiextv1.JSON `json:"default,omitempty"`
// JMESPath is an optional JSON Match Expression that can be used to
// transform the JSON response returned from the server. For example

View file

@ -119,7 +119,7 @@ type ImageVerification struct {
// Validation checks conditions across multiple image
// verification attestations or context entries
Validation ValidateImageVerification `json:"validate,omitempty" yaml:"validate,omitempty"`
Validation ValidateImageVerification `json:"validate,omitempty"`
// Required validates that images are verified i.e. have matched passed a signature or attestation check.
// +kubebuilder:default=true
@ -325,7 +325,7 @@ type CTLog struct {
// OCI registry and decodes them into a list of Statements.
type Attestation struct {
// Name is the variable name.
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Name string `json:"name,omitempty"`
// Deprecated in favour of 'Type', to be removed soon
// +kubebuilder:validation:Optional
@ -366,11 +366,11 @@ type ImageRegistryCredentials struct {
type ValidateImageVerification struct {
// Message specifies a custom message to be displayed on failure.
// +optional
Message string `json:"message,omitempty" yaml:"message,omitempty"`
Message string `json:"message,omitempty"`
// Deny defines conditions used to pass or fail a validation rule.
// +optional
Deny *Deny `json:"deny,omitempty" yaml:"deny,omitempty"`
Deny *Deny `json:"deny,omitempty"`
}
func (iv *ImageVerification) GetType() ImageVerificationType {

View file

@ -75,7 +75,7 @@ type Spec struct {
// Enabling this option will extend admission request processing times. The default value is "false".
// +optional
// +kubebuilder:default=false
EmitWarning *bool `json:"emitWarning,omitempty" yaml:"emitWarning,omitempty"`
EmitWarning *bool `json:"emitWarning,omitempty"`
// Admission controls if rules are applied during admission.
// Optional. Default value is "true".

View file

@ -60,7 +60,7 @@ type ImageVerification struct {
// Validation checks conditions across multiple image
// verification attestations or context entries
Validation kyvernov1.ValidateImageVerification `json:"validate,omitempty" yaml:"validate,omitempty"`
Validation kyvernov1.ValidateImageVerification `json:"validate,omitempty"`
// Required validates that images are verified i.e. have matched passed a signature or attestation check.
// +kubebuilder:default=true