mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
add condition msg to v2beta1 (#7126)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
parent
0d8c8bf1d8
commit
ef55e716a6
8 changed files with 134 additions and 0 deletions
|
@ -97,6 +97,9 @@ type Condition struct {
|
|||
// or can be variables declared using JMESPath.
|
||||
// +optional
|
||||
RawValue *apiextv1.JSON `json:"value,omitempty" yaml:"value,omitempty"`
|
||||
|
||||
// Message is an optional display message
|
||||
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||
}
|
||||
|
||||
func (c *Condition) GetKey() apiextensions.JSON {
|
||||
|
|
|
@ -708,6 +708,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -748,6 +751,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -2577,6 +2583,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -2617,6 +2626,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -12848,6 +12860,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -12889,6 +12904,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -12949,6 +12967,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
@ -12992,6 +13014,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
@ -27117,6 +27143,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -27158,6 +27187,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -27218,6 +27250,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
@ -27261,6 +27297,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
|
|
@ -61,6 +61,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -101,6 +104,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
|
|
@ -61,6 +61,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -101,6 +104,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
|
|
@ -9106,6 +9106,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -9147,6 +9150,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -9207,6 +9213,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
@ -9250,6 +9260,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
|
|
@ -9109,6 +9109,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -9150,6 +9153,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -9210,6 +9216,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
@ -9253,6 +9263,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
|
|
@ -912,6 +912,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -952,6 +955,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -2781,6 +2787,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -2821,6 +2830,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath) for
|
||||
conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation to perform.
|
||||
Valid operators are: Equals, NotEquals, In, AnyIn, AllIn,
|
||||
|
@ -13052,6 +13064,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -13093,6 +13108,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -13153,6 +13171,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
@ -13196,6 +13218,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
@ -27321,6 +27347,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -27362,6 +27391,9 @@ spec:
|
|||
description: Key is the context entry (using JMESPath)
|
||||
for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional operation
|
||||
to perform. Valid operators are: Equals, NotEquals,
|
||||
|
@ -27422,6 +27454,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
@ -27465,6 +27501,10 @@ spec:
|
|||
description: Key is the context entry (using
|
||||
JMESPath) for conditional rule evaluation.
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
message:
|
||||
description: Message is an optional display
|
||||
message
|
||||
type: string
|
||||
operator:
|
||||
description: 'Operator is the conditional
|
||||
operation to perform. Valid operators are:
|
||||
|
|
|
@ -6179,6 +6179,17 @@ Kubernetes apiextensions/v1.JSON
|
|||
or can be variables declared using JMESPath.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>message</code><br/>
|
||||
<em>
|
||||
string
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>Message is an optional display message</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr />
|
||||
|
|
Loading…
Add table
Reference in a new issue