mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-15 08:46:36 +00:00
fix: add missing omitempty tag (#8430)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
a43a20adb9
commit
3a61f2c6b7
1 changed files with 2 additions and 2 deletions
|
@ -112,12 +112,12 @@ type RequestInfo struct {
|
|||
// Roles is a list of possible role send the request.
|
||||
// +nullable
|
||||
// +optional
|
||||
Roles []string `json:"roles" yaml:"roles"`
|
||||
Roles []string `json:"roles,omitempty" yaml:"roles,omitempty"`
|
||||
|
||||
// ClusterRoles is a list of possible clusterRoles send the request.
|
||||
// +nullable
|
||||
// +optional
|
||||
ClusterRoles []string `json:"clusterRoles" yaml:"clusterRoles"`
|
||||
ClusterRoles []string `json:"clusterRoles,omitempty" yaml:"clusterRoles,omitempty"`
|
||||
|
||||
// UserInfo is the userInfo carried in the admission request.
|
||||
// +optional
|
||||
|
|
Loading…
Add table
Reference in a new issue