diff --git a/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml b/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml index 4100bf2ac..a15286dfe 100644 --- a/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml +++ b/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml @@ -163,7 +163,7 @@ spec: description: Resource is the resource name of the Kubernetes resource. type: string updateStrategy: - description: UpdateStrategy defines the strategy to update this manifest. UpdateStrategy is Update if it is not set, optional + description: UpdateStrategy defines the strategy to update this manifest. UpdateStrategy is Update if it is not set. type: object required: - type diff --git a/work/v1/types.go b/work/v1/types.go index efa94f1ca..36a66bc22 100644 --- a/work/v1/types.go +++ b/work/v1/types.go @@ -92,9 +92,9 @@ type ManifestConfigOption struct { FeedbackRules []FeedbackRule `json:"feedbackRules,omitempty"` // UpdateStrategy defines the strategy to update this manifest. UpdateStrategy is Update - // if it is not set, - // optional - UpdateStrategy *UpdateStrategy `json:"updateStrategy"` + // if it is not set. + // +optional + UpdateStrategy *UpdateStrategy `json:"updateStrategy,omitempty"` } // ManifestWorkExecutor is the executor that applies the resources to the managed cluster. i.e. the diff --git a/work/v1/zz_generated.swagger_doc_generated.go b/work/v1/zz_generated.swagger_doc_generated.go index 838080f7c..c82a457dc 100644 --- a/work/v1/zz_generated.swagger_doc_generated.go +++ b/work/v1/zz_generated.swagger_doc_generated.go @@ -133,7 +133,7 @@ var map_ManifestConfigOption = map[string]string{ "": "ManifestConfigOption represents the configurations of a manifest defined in workload field.", "resourceIdentifier": "ResourceIdentifier represents the group, resource, name and namespace of a resoure. iff this refers to a resource not created by this manifest work, the related rules will not be executed.", "feedbackRules": "FeedbackRules defines what resource status field should be returned. If it is not set or empty, no feedback rules will be honored.", - "updateStrategy": "UpdateStrategy defines the strategy to update this manifest. UpdateStrategy is Update if it is not set, optional", + "updateStrategy": "UpdateStrategy defines the strategy to update this manifest. UpdateStrategy is Update if it is not set.", } func (ManifestConfigOption) SwaggerDoc() map[string]string { diff --git a/work/v1alpha1/0000_00_work.open-cluster-management.io_placemanifestworks.crd.yaml b/work/v1alpha1/0000_00_work.open-cluster-management.io_placemanifestworks.crd.yaml index 6f79dc2eb..5df48ed8e 100644 --- a/work/v1alpha1/0000_00_work.open-cluster-management.io_placemanifestworks.crd.yaml +++ b/work/v1alpha1/0000_00_work.open-cluster-management.io_placemanifestworks.crd.yaml @@ -187,7 +187,7 @@ spec: description: Resource is the resource name of the Kubernetes resource. type: string updateStrategy: - description: UpdateStrategy defines the strategy to update this manifest. UpdateStrategy is Update if it is not set, optional + description: UpdateStrategy defines the strategy to update this manifest. UpdateStrategy is Update if it is not set. type: object required: - type