Skip to content

Commit

Permalink
Merge pull request #5611 from RainbowMango/pr_update_work_api_comments
Browse files Browse the repository at this point in the history
Correct SuspendDispatching comments and add notes.
  • Loading branch information
karmada-bot authored Sep 26, 2024
2 parents 4f7dc2c + 6b3a781 commit 8906ec0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -19847,7 +19847,7 @@
"type": "boolean"
},
"suspendDispatching": {
"description": "SuspendDispatching controls whether dispatching should be suspended, nil means not suspend. Note: true means stop propagating to all clusters.",
"description": "SuspendDispatching controls whether dispatching should be suspended, nil means not suspend. Note: true means stop propagating to the corresponding member cluster, and does not prevent status collection.",
"type": "boolean"
},
"workload": {
Expand Down
3 changes: 2 additions & 1 deletion charts/karmada/_crds/bases/work/work.karmada.io_works.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ spec:
description: |-
SuspendDispatching controls whether dispatching should
be suspended, nil means not suspend.
Note: true means stop propagating to all clusters.
Note: true means stop propagating to the corresponding member cluster, and
does not prevent status collection.
type: boolean
workload:
description: Workload represents the manifest workload to be deployed
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/work/v1alpha1/work_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ type WorkSpec struct {

// SuspendDispatching controls whether dispatching should
// be suspended, nil means not suspend.
// Note: true means stop propagating to all clusters.
// Note: true means stop propagating to the corresponding member cluster, and
// does not prevent status collection.
// +optional
SuspendDispatching *bool `json:"suspendDispatching,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion pkg/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8906ec0

Please sign in to comment.