1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 18:15:48 +00:00

updated description field of foreach (#3157)

Signed-off-by: Prateeknandle <prateeknandle@gmail.com>
This commit is contained in:
Prateek Nandle 2022-03-07 19:26:19 +05:30 committed by GitHub
parent 51db68ba20
commit 666130bf6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 96 additions and 60 deletions

View file

@ -444,7 +444,7 @@ type Mutation struct {
// +optional
PatchesJSON6902 string `json:"patchesJson6902,omitempty" yaml:"patchesJson6902,omitempty"`
// ForEachMutation applies policy rule changes to nested elements.
// 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.
// +optional
ForEachMutation []*ForEachMutation `json:"foreach,omitempty" yaml:"foreach,omitempty"`
}
@ -457,7 +457,7 @@ func (base *Mutation) SetPatchStrategicMerge(in apiextensions.JSON) {
base.RawPatchStrategicMerge = ToJSON(in)
}
// ForEachMutation applies policy rule changes to nested elements.
// 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.
type ForEachMutation struct {
// List specifies a JMESPath expression that results in one or more elements
// to which the validation logic is applied.
@ -501,7 +501,7 @@ type Validation struct {
// +optional
Message string `json:"message,omitempty" yaml:"message,omitempty"`
// ForEach applies policy rule changes to nested elements.
// 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.
// +optional
ForEachValidation []*ForEachValidation `json:"foreach,omitempty" yaml:"foreach,omitempty"`
@ -552,7 +552,7 @@ func (base *Deny) SetAnyAllConditions(in apiextensions.JSON) {
base.RawAnyAllConditions = ToJSON(in)
}
// ForEachValidation applies policy rule checks to nested elements.
// 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.
type ForEachValidation struct {
// List specifies a JMESPath expression that results in one or more elements

View file

@ -900,9 +900,9 @@ spec:
description: Mutation is used to modify matching resources.
properties:
foreach:
description: ForEachMutation applies policy rule changes to nested elements.
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.
items:
description: ForEachMutation applies policy rule changes to nested elements.
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.
properties:
context:
description: Context defines variables and data sources that can be used during rule execution.
@ -1060,9 +1060,9 @@ spec:
x-kubernetes-preserve-unknown-fields: true
type: object
foreach:
description: ForEach applies policy rule changes to nested elements.
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.
items:
description: ForEachValidation applies policy rule checks to nested elements.
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.
properties:
anyPattern:
description: AnyPattern specifies list of validation patterns. At least one of the patterns must be satisfied for the validation rule to succeed.
@ -3442,9 +3442,9 @@ spec:
description: Mutation is used to modify matching resources.
properties:
foreach:
description: ForEachMutation applies policy rule changes to nested elements.
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.
items:
description: ForEachMutation applies policy rule changes to nested elements.
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.
properties:
context:
description: Context defines variables and data sources that can be used during rule execution.
@ -3602,9 +3602,9 @@ spec:
x-kubernetes-preserve-unknown-fields: true
type: object
foreach:
description: ForEach applies policy rule changes to nested elements.
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.
items:
description: ForEachValidation applies policy rule checks to nested elements.
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.
properties:
anyPattern:
description: AnyPattern specifies list of validation patterns. At least one of the patterns must be satisfied for the validation rule to succeed.

View file

@ -1454,11 +1454,14 @@ spec:
description: Mutation is used to modify matching resources.
properties:
foreach:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
items:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
properties:
context:
description: Context defines variables and data sources
@ -1699,11 +1702,14 @@ spec:
x-kubernetes-preserve-unknown-fields: true
type: object
foreach:
description: ForEach applies policy rule changes to nested
elements.
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.
items:
description: ForEachValidation applies policy rule checks
to nested elements.
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.
properties:
anyPattern:
description: AnyPattern specifies list of validation

View file

@ -1455,11 +1455,14 @@ spec:
description: Mutation is used to modify matching resources.
properties:
foreach:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
items:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
properties:
context:
description: Context defines variables and data sources
@ -1700,11 +1703,14 @@ spec:
x-kubernetes-preserve-unknown-fields: true
type: object
foreach:
description: ForEach applies policy rule changes to nested
elements.
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.
items:
description: ForEachValidation applies policy rule checks
to nested elements.
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.
properties:
anyPattern:
description: AnyPattern specifies list of validation

View file

@ -1470,11 +1470,14 @@ spec:
description: Mutation is used to modify matching resources.
properties:
foreach:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
items:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
properties:
context:
description: Context defines variables and data sources
@ -1715,11 +1718,14 @@ spec:
x-kubernetes-preserve-unknown-fields: true
type: object
foreach:
description: ForEach applies policy rule changes to nested
elements.
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.
items:
description: ForEachValidation applies policy rule checks
to nested elements.
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.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -5209,11 +5215,14 @@ spec:
description: Mutation is used to modify matching resources.
properties:
foreach:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
items:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
properties:
context:
description: Context defines variables and data sources
@ -5454,11 +5463,14 @@ spec:
x-kubernetes-preserve-unknown-fields: true
type: object
foreach:
description: ForEach applies policy rule changes to nested
elements.
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.
items:
description: ForEachValidation applies policy rule checks
to nested elements.
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.
properties:
anyPattern:
description: AnyPattern specifies list of validation

View file

@ -1459,11 +1459,14 @@ spec:
description: Mutation is used to modify matching resources.
properties:
foreach:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
items:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
properties:
context:
description: Context defines variables and data sources
@ -1704,11 +1707,14 @@ spec:
x-kubernetes-preserve-unknown-fields: true
type: object
foreach:
description: ForEach applies policy rule changes to nested
elements.
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.
items:
description: ForEachValidation applies policy rule checks
to nested elements.
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.
properties:
anyPattern:
description: AnyPattern specifies list of validation
@ -5174,11 +5180,14 @@ spec:
description: Mutation is used to modify matching resources.
properties:
foreach:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
items:
description: ForEachMutation applies policy rule changes
to nested elements.
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.
properties:
context:
description: Context defines variables and data sources
@ -5419,11 +5428,14 @@ spec:
x-kubernetes-preserve-unknown-fields: true
type: object
foreach:
description: ForEach applies policy rule changes to nested
elements.
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.
items:
description: ForEachValidation applies policy rule checks
to nested elements.
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.
properties:
anyPattern:
description: AnyPattern specifies list of validation