mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +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:
parent
37ab9ba824
commit
209fd8d90a
4 changed files with 7 additions and 7 deletions
|
@ -220,7 +220,7 @@ type ContextAPICall struct {
|
||||||
// Default is an optional arbitrary JSON object that the context may take if the apiCall
|
// Default is an optional arbitrary JSON object that the context may take if the apiCall
|
||||||
// returns error
|
// returns error
|
||||||
// +optional
|
// +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
|
// JMESPath is an optional JSON Match Expression that can be used to
|
||||||
// transform the JSON response returned from the server. For example
|
// transform the JSON response returned from the server. For example
|
||||||
|
|
|
@ -119,7 +119,7 @@ type ImageVerification struct {
|
||||||
|
|
||||||
// Validation checks conditions across multiple image
|
// Validation checks conditions across multiple image
|
||||||
// verification attestations or context entries
|
// 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.
|
// Required validates that images are verified i.e. have matched passed a signature or attestation check.
|
||||||
// +kubebuilder:default=true
|
// +kubebuilder:default=true
|
||||||
|
@ -325,7 +325,7 @@ type CTLog struct {
|
||||||
// OCI registry and decodes them into a list of Statements.
|
// OCI registry and decodes them into a list of Statements.
|
||||||
type Attestation struct {
|
type Attestation struct {
|
||||||
// Name is the variable name.
|
// 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
|
// Deprecated in favour of 'Type', to be removed soon
|
||||||
// +kubebuilder:validation:Optional
|
// +kubebuilder:validation:Optional
|
||||||
|
@ -366,11 +366,11 @@ type ImageRegistryCredentials struct {
|
||||||
type ValidateImageVerification struct {
|
type ValidateImageVerification struct {
|
||||||
// Message specifies a custom message to be displayed on failure.
|
// Message specifies a custom message to be displayed on failure.
|
||||||
// +optional
|
// +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.
|
// Deny defines conditions used to pass or fail a validation rule.
|
||||||
// +optional
|
// +optional
|
||||||
Deny *Deny `json:"deny,omitempty" yaml:"deny,omitempty"`
|
Deny *Deny `json:"deny,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (iv *ImageVerification) GetType() ImageVerificationType {
|
func (iv *ImageVerification) GetType() ImageVerificationType {
|
||||||
|
|
|
@ -75,7 +75,7 @@ type Spec struct {
|
||||||
// Enabling this option will extend admission request processing times. The default value is "false".
|
// Enabling this option will extend admission request processing times. The default value is "false".
|
||||||
// +optional
|
// +optional
|
||||||
// +kubebuilder:default=false
|
// +kubebuilder:default=false
|
||||||
EmitWarning *bool `json:"emitWarning,omitempty" yaml:"emitWarning,omitempty"`
|
EmitWarning *bool `json:"emitWarning,omitempty"`
|
||||||
|
|
||||||
// Admission controls if rules are applied during admission.
|
// Admission controls if rules are applied during admission.
|
||||||
// Optional. Default value is "true".
|
// Optional. Default value is "true".
|
||||||
|
|
|
@ -60,7 +60,7 @@ type ImageVerification struct {
|
||||||
|
|
||||||
// Validation checks conditions across multiple image
|
// Validation checks conditions across multiple image
|
||||||
// verification attestations or context entries
|
// 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.
|
// Required validates that images are verified i.e. have matched passed a signature or attestation check.
|
||||||
// +kubebuilder:default=true
|
// +kubebuilder:default=true
|
||||||
|
|
Loading…
Add table
Reference in a new issue