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

fix: comment format (#6042)

Signed-off-by: fengshunli <1171313930@qq.com>

Signed-off-by: fengshunli <1171313930@qq.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
fsl 2023-01-20 16:56:35 +08:00 committed by GitHub
parent 5a18230e35
commit b8ecab76be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 187 additions and 187 deletions

View file

@ -27,9 +27,9 @@ const (
type ApplyRulesType string
const (
// AllMatchingRules applies all rules in a policy that match.
// ApplyAll applies all rules in a policy that match.
ApplyAll ApplyRulesType = "All"
// FirstMatchingRule applies only the first matching rule in the policy.
// ApplyOne applies only the first matching rule in the policy.
ApplyOne ApplyRulesType = "One"
)
@ -290,7 +290,7 @@ func (m *Mutation) SetPatchStrategicMerge(in apiextensions.JSON) {
m.RawPatchStrategicMerge = ToJSON(in)
}
// ForEach applies mutation rules to a list of sub-elements by creating a context for each entry in the list and looping over it to apply the specified logic.
// ForEachMutation applies mutation rules to a list of sub-elements by creating a context for each entry in the list and looping over it to apply the specified logic.
type ForEachMutation struct {
// List specifies a JMESPath expression that results in one or more elements
// to which the validation logic is applied.
@ -461,7 +461,7 @@ func (d *Deny) SetAnyAllConditions(in apiextensions.JSON) {
d.RawAnyAllConditions = ToJSON(in)
}
// ForEach applies validate rules to a list of sub-elements by creating a context for each entry in the list and looping over it to apply the specified logic.
// ForEachValidation applies validate rules to a list of sub-elements by creating a context for each entry in the list and looping over it to apply the specified logic.
type ForEachValidation struct {
// List specifies a JMESPath expression that results in one or more elements
// to which the validation logic is applied.

View file

@ -6,7 +6,7 @@ import (
)
const (
// Ready means that the policy is ready
// PolicyConditionReady means that the policy is ready
PolicyConditionReady = "Ready"
)

View file

@ -5077,9 +5077,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -5411,10 +5411,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -8367,10 +8367,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -8717,10 +8717,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -11357,9 +11357,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -11859,10 +11859,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -14775,10 +14775,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -15125,10 +15125,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -18188,9 +18188,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -18522,10 +18522,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -21479,10 +21479,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -21829,10 +21829,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -24470,9 +24470,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -24972,10 +24972,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -27888,10 +27888,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -28238,10 +28238,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation

View file

@ -1675,9 +1675,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -2009,10 +2009,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -4965,10 +4965,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -5315,10 +5315,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -7955,9 +7955,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -8457,10 +8457,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -11373,10 +11373,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -11723,10 +11723,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation

View file

@ -1676,9 +1676,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -2010,10 +2010,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -4967,10 +4967,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -5317,10 +5317,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -7958,9 +7958,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -8460,10 +8460,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -11376,10 +11376,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -11726,10 +11726,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation

View file

@ -5162,9 +5162,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -5496,10 +5496,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -8452,10 +8452,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -8802,10 +8802,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -11442,9 +11442,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -11944,10 +11944,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -14860,10 +14860,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -15210,10 +15210,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -18274,9 +18274,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -18608,10 +18608,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -21565,10 +21565,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -21915,10 +21915,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -24556,9 +24556,9 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
description: ForEachMutation applies mutation rules to
a list of sub-elements by creating a context for each
entry in the list and looping over it to apply the specified
logic.
properties:
context:
@ -25058,10 +25058,10 @@ spec:
sub-elements by creating a context for each entry in the
list and looping over it to apply the specified logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context for
each entry in the list and looping over it to apply
the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -27974,10 +27974,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies mutation rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachMutation applies mutation rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
context:
description: Context defines variables and data
@ -28324,10 +28324,10 @@ spec:
in the list and looping over it to apply the specified
logic.
items:
description: ForEach applies validate rules to a list
of sub-elements by creating a context for each entry
in the list and looping over it to apply the specified
logic.
description: ForEachValidation applies validate rules
to a list of sub-elements by creating a context
for each entry in the list and looping over it to
apply the specified logic.
properties:
anyPattern:
description: AnyPattern specifies list of validation

View file

@ -1298,7 +1298,7 @@ string
<a href="#kyverno.io/v1.Mutation">Mutation</a>)
</p>
<p>
<p>ForEach applies mutation rules to a list of sub-elements by creating a context for each entry in the list and looping over it to apply the specified logic.</p>
<p>ForEachMutation applies mutation rules to a list of sub-elements by creating a context for each entry in the list and looping over it to apply the specified logic.</p>
</p>
<table class="table table-striped">
<thead class="thead-dark">
@ -1404,7 +1404,7 @@ Kubernetes apiextensions/v1.JSON
<a href="#kyverno.io/v2beta1.Validation">Validation</a>)
</p>
<p>
<p>ForEach applies validate rules to a list of sub-elements by creating a context for each entry in the list and looping over it to apply the specified logic.</p>
<p>ForEachValidation applies validate rules to a list of sub-elements by creating a context for each entry in the list and looping over it to apply the specified logic.</p>
</p>
<table class="table table-striped">
<thead class="thead-dark">