The OverriderOperator description does not match the actual functions

Signed-off-by: lixingchenDaoCloud <captainchina_li@163.com>
This commit is contained in:
lixingchenDaoCloud 2022-10-17 11:03:24 +08:00
parent 05be79f76e
commit 233430c311
5 changed files with 7 additions and 7 deletions

View File

@ -15253,7 +15253,7 @@
],
"properties": {
"operator": {
"description": "Operator indicates the operation on target field. Available operators are: add, update and remove.",
"description": "Operator indicates the operation on target field. Available operators are: add, replace and remove.",
"type": "string",
"default": ""
},

View File

@ -241,7 +241,7 @@ spec:
properties:
operator:
description: 'Operator indicates the operation on
target field. Available operators are: add, update
target field. Available operators are: add, replace
and remove.'
enum:
- add
@ -557,7 +557,7 @@ spec:
properties:
operator:
description: 'Operator indicates the operation on target
field. Available operators are: add, update and remove.'
field. Available operators are: add, replace and remove.'
enum:
- add
- remove

View File

@ -241,7 +241,7 @@ spec:
properties:
operator:
description: 'Operator indicates the operation on
target field. Available operators are: add, update
target field. Available operators are: add, replace
and remove.'
enum:
- add
@ -557,7 +557,7 @@ spec:
properties:
operator:
description: 'Operator indicates the operation on target
field. Available operators are: add, update and remove.'
field. Available operators are: add, replace and remove.'
enum:
- add
- remove

View File

@ -218,7 +218,7 @@ type PlaintextOverrider struct {
// Path indicates the path of target field
Path string `json:"path"`
// Operator indicates the operation on target field.
// Available operators are: add, update and remove.
// Available operators are: add, replace and remove.
// +kubebuilder:validation:Enum=add;remove;replace
Operator OverriderOperator `json:"operator"`
// Value to be applied to target field.

View File

@ -2795,7 +2795,7 @@ func schema_pkg_apis_policy_v1alpha1_PlaintextOverrider(ref common.ReferenceCall
},
"operator": {
SchemaProps: spec.SchemaProps{
Description: "Operator indicates the operation on target field. Available operators are: add, update and remove.",
Description: "Operator indicates the operation on target field. Available operators are: add, replace and remove.",
Default: "",
Type: []string{"string"},
Format: "",