mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: add char length validation for generate rule resource name (#3640)
Signed-off-by: prateekpandey14 <prateek.pandey@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com> Co-authored-by: Vyankatesh Kudtarkar <vyankateshkd@gmail.com>
This commit is contained in:
parent
201e55fcfb
commit
c2107a2946
9 changed files with 42 additions and 15 deletions
|
@ -509,5 +509,6 @@ type ResourceSpec struct {
|
|||
// +optional
|
||||
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
|
||||
// Name specifies the resource name.
|
||||
// +kubebuilder:validation:MaxLength=63
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
}
|
||||
|
|
|
@ -514,6 +514,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -1980,6 +1981,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -3585,6 +3587,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -3611,6 +3614,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -4155,6 +4159,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -5621,6 +5626,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
|
|
@ -804,6 +804,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -3183,6 +3184,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
|
|
@ -134,6 +134,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -161,6 +162,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
|
|
@ -805,6 +805,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -3185,6 +3186,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
|
|
@ -135,6 +135,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -162,6 +163,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
|
|
@ -821,6 +821,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -3200,6 +3201,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -5599,6 +5601,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -5626,6 +5629,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -6467,6 +6471,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -8847,6 +8852,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
|
|
@ -810,6 +810,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -3189,6 +3190,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -5570,6 +5572,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -5597,6 +5600,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -6432,6 +6436,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
@ -8812,6 +8817,7 @@ spec:
|
|||
type: string
|
||||
name:
|
||||
description: Name specifies the resource name.
|
||||
maxLength: 63
|
||||
type: string
|
||||
namespace:
|
||||
description: Namespace specifies resource namespace.
|
||||
|
|
|
@ -209,8 +209,8 @@ string
|
|||
<td>
|
||||
<code>conditions</code></br>
|
||||
<em>
|
||||
<a href="#kyverno.io/v1.*./api/kyverno/v1.AnyAllConditions">
|
||||
[]*./api/kyverno/v1.AnyAllConditions
|
||||
<a href="#kyverno.io/v1.*github.com/kyverno/kyverno/api/kyverno/v1.AnyAllConditions">
|
||||
[]*github.com/kyverno/kyverno/api/kyverno/v1.AnyAllConditions
|
||||
</a>
|
||||
</em>
|
||||
</td>
|
||||
|
@ -330,8 +330,8 @@ value N, then N must be less than or equal to the size of entries, and at least
|
|||
<td>
|
||||
<code>entries</code></br>
|
||||
<em>
|
||||
<a href="#kyverno.io/v1.*./api/kyverno/v1.Attestor">
|
||||
[]*./api/kyverno/v1.Attestor
|
||||
<a href="#kyverno.io/v1.*github.com/kyverno/kyverno/api/kyverno/v1.Attestor">
|
||||
[]*github.com/kyverno/kyverno/api/kyverno/v1.Attestor
|
||||
</a>
|
||||
</em>
|
||||
</td>
|
||||
|
@ -1560,8 +1560,8 @@ Deprecated.</p>
|
|||
<td>
|
||||
<code>attestors</code></br>
|
||||
<em>
|
||||
<a href="#kyverno.io/v1.*./api/kyverno/v1.AttestorSet">
|
||||
[]*./api/kyverno/v1.AttestorSet
|
||||
<a href="#kyverno.io/v1.*github.com/kyverno/kyverno/api/kyverno/v1.AttestorSet">
|
||||
[]*github.com/kyverno/kyverno/api/kyverno/v1.AttestorSet
|
||||
</a>
|
||||
</em>
|
||||
</td>
|
||||
|
@ -1573,8 +1573,8 @@ Deprecated.</p>
|
|||
<td>
|
||||
<code>attestations</code></br>
|
||||
<em>
|
||||
<a href="#kyverno.io/v1.*./api/kyverno/v1.Attestation">
|
||||
[]*./api/kyverno/v1.Attestation
|
||||
<a href="#kyverno.io/v1.*github.com/kyverno/kyverno/api/kyverno/v1.Attestation">
|
||||
[]*github.com/kyverno/kyverno/api/kyverno/v1.Attestation
|
||||
</a>
|
||||
</em>
|
||||
</td>
|
||||
|
@ -1848,8 +1848,8 @@ See <a href="https://tools.ietf.org/html/rfc6902">https://tools.ietf.org/html/rf
|
|||
<td>
|
||||
<code>foreach</code></br>
|
||||
<em>
|
||||
<a href="#kyverno.io/v1.*./api/kyverno/v1.ForEachMutation">
|
||||
[]*./api/kyverno/v1.ForEachMutation
|
||||
<a href="#kyverno.io/v1.*github.com/kyverno/kyverno/api/kyverno/v1.ForEachMutation">
|
||||
[]*github.com/kyverno/kyverno/api/kyverno/v1.ForEachMutation
|
||||
</a>
|
||||
</em>
|
||||
</td>
|
||||
|
@ -2331,7 +2331,7 @@ ResourceDescription
|
|||
</table>
|
||||
<hr />
|
||||
<h3 id="kyverno.io/v1.ResourceFilters">ResourceFilters
|
||||
(<code>[]./api/kyverno/v1.ResourceFilter</code> alias)</p></h3>
|
||||
(<code>[]github.com/kyverno/kyverno/api/kyverno/v1.ResourceFilter</code> alias)</p></h3>
|
||||
<p>
|
||||
(<em>Appears on:</em>
|
||||
<a href="#kyverno.io/v1.MatchResources">MatchResources</a>)
|
||||
|
@ -2559,8 +2559,8 @@ Generation
|
|||
<td>
|
||||
<code>verifyImages</code></br>
|
||||
<em>
|
||||
<a href="#kyverno.io/v1.*./api/kyverno/v1.ImageVerification">
|
||||
[]*./api/kyverno/v1.ImageVerification
|
||||
<a href="#kyverno.io/v1.*github.com/kyverno/kyverno/api/kyverno/v1.ImageVerification">
|
||||
[]*github.com/kyverno/kyverno/api/kyverno/v1.ImageVerification
|
||||
</a>
|
||||
</em>
|
||||
</td>
|
||||
|
@ -2845,8 +2845,8 @@ string
|
|||
<td>
|
||||
<code>foreach</code></br>
|
||||
<em>
|
||||
<a href="#kyverno.io/v1.*./api/kyverno/v1.ForEachValidation">
|
||||
[]*./api/kyverno/v1.ForEachValidation
|
||||
<a href="#kyverno.io/v1.*github.com/kyverno/kyverno/api/kyverno/v1.ForEachValidation">
|
||||
[]*github.com/kyverno/kyverno/api/kyverno/v1.ForEachValidation
|
||||
</a>
|
||||
</em>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue