From 233430c311cce521a68a1b0c40c9164072c1a8a1 Mon Sep 17 00:00:00 2001 From: lixingchenDaoCloud Date: Mon, 17 Oct 2022 11:03:24 +0800 Subject: [PATCH] The OverriderOperator description does not match the actual functions Signed-off-by: lixingchenDaoCloud --- api/openapi-spec/swagger.json | 2 +- .../bases/policy.karmada.io_clusteroverridepolicies.yaml | 4 ++-- .../_crds/bases/policy.karmada.io_overridepolicies.yaml | 4 ++-- pkg/apis/policy/v1alpha1/override_types.go | 2 +- pkg/generated/openapi/zz_generated.openapi.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 3b3d03b1d..454a2e41e 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -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": "" }, diff --git a/charts/karmada/_crds/bases/policy.karmada.io_clusteroverridepolicies.yaml b/charts/karmada/_crds/bases/policy.karmada.io_clusteroverridepolicies.yaml index 74a21d963..4713c0280 100644 --- a/charts/karmada/_crds/bases/policy.karmada.io_clusteroverridepolicies.yaml +++ b/charts/karmada/_crds/bases/policy.karmada.io_clusteroverridepolicies.yaml @@ -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 diff --git a/charts/karmada/_crds/bases/policy.karmada.io_overridepolicies.yaml b/charts/karmada/_crds/bases/policy.karmada.io_overridepolicies.yaml index bd78c30f0..53febc423 100644 --- a/charts/karmada/_crds/bases/policy.karmada.io_overridepolicies.yaml +++ b/charts/karmada/_crds/bases/policy.karmada.io_overridepolicies.yaml @@ -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 diff --git a/pkg/apis/policy/v1alpha1/override_types.go b/pkg/apis/policy/v1alpha1/override_types.go index 2d55963c5..8a85ff158 100644 --- a/pkg/apis/policy/v1alpha1/override_types.go +++ b/pkg/apis/policy/v1alpha1/override_types.go @@ -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. diff --git a/pkg/generated/openapi/zz_generated.openapi.go b/pkg/generated/openapi/zz_generated.openapi.go index 6b7c839b1..3a5a43cfe 100644 --- a/pkg/generated/openapi/zz_generated.openapi.go +++ b/pkg/generated/openapi/zz_generated.openapi.go @@ -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: "",