Merge pull request #2646 from lixingchenDaoCloud/override-descriptions-wrong

The OverriderOperator description does not match the actual function
This commit is contained in:
karmada-bot 2022-10-18 09:35:30 +08:00 committed by GitHub
commit a0ca636508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -15253,7 +15253,7 @@
], ],
"properties": { "properties": {
"operator": { "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", "type": "string",
"default": "" "default": ""
}, },

View File

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

View File

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

View File

@ -218,7 +218,7 @@ type PlaintextOverrider struct {
// Path indicates the path of target field // Path indicates the path of target field
Path string `json:"path"` Path string `json:"path"`
// Operator indicates the operation on target field. // 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 // +kubebuilder:validation:Enum=add;remove;replace
Operator OverriderOperator `json:"operator"` Operator OverriderOperator `json:"operator"`
// Value to be applied to target field. // Value to be applied to target field.

View File

@ -2795,7 +2795,7 @@ func schema_pkg_apis_policy_v1alpha1_PlaintextOverrider(ref common.ReferenceCall
}, },
"operator": { "operator": {
SchemaProps: spec.SchemaProps{ 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: "", Default: "",
Type: []string{"string"}, Type: []string{"string"},
Format: "", Format: "",