Skip to content

Commit 9718d08

Browse files
committed
RB suspension: API change
Signed-off-by: Monokaix <[email protected]>
1 parent 8457cd2 commit 9718d08

File tree

8 files changed

+45
-0
lines changed

8 files changed

+45
-0
lines changed

api/openapi-spec/swagger.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19418,6 +19418,10 @@
1941819418
"dispatchingOnClusters": {
1941919419
"description": "DispatchingOnClusters declares a list of clusters to which the dispatching should be suspended. Note: Can not co-exist with Dispatching which is used to suspend all.",
1942019420
"$ref": "#/definitions/com.github.karmada-io.karmada.pkg.apis.policy.v1alpha1.SuspendClusters"
19421+
},
19422+
"scheduling": {
19423+
"description": "Scheduling controls whether scheduling should be suspended. nil means not suspend, no default value, only accepts 'true'. Karmada scheduler will pause scheduling when value is true and resume scheduling when it's nil.",
19424+
"type": "boolean"
1942119425
}
1942219426
}
1942319427
},

charts/karmada/_crds/bases/policy/policy.karmada.io_clusterpropagationpolicies.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,12 @@ spec:
895895
type: string
896896
type: array
897897
type: object
898+
scheduling:
899+
description: |-
900+
Scheduling controls whether scheduling should be suspended.
901+
nil means not suspend, no default value, only accepts 'true'.
902+
Karmada scheduler will pause scheduling when value is true and resume scheduling when it's nil.
903+
type: boolean
898904
type: object
899905
required:
900906
- resourceSelectors

charts/karmada/_crds/bases/policy/policy.karmada.io_propagationpolicies.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,12 @@ spec:
892892
type: string
893893
type: array
894894
type: object
895+
scheduling:
896+
description: |-
897+
Scheduling controls whether scheduling should be suspended.
898+
nil means not suspend, no default value, only accepts 'true'.
899+
Karmada scheduler will pause scheduling when value is true and resume scheduling when it's nil.
900+
type: boolean
895901
type: object
896902
required:
897903
- resourceSelectors

charts/karmada/_crds/bases/work/work.karmada.io_clusterresourcebindings.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,12 @@ spec:
12811281
type: string
12821282
type: array
12831283
type: object
1284+
scheduling:
1285+
description: |-
1286+
Scheduling controls whether scheduling should be suspended.
1287+
nil means not suspend, no default value, only accepts 'true'.
1288+
Karmada scheduler will pause scheduling when value is true and resume scheduling when it's nil.
1289+
type: boolean
12841290
type: object
12851291
required:
12861292
- resource

charts/karmada/_crds/bases/work/work.karmada.io_resourcebindings.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,12 @@ spec:
12811281
type: string
12821282
type: array
12831283
type: object
1284+
scheduling:
1285+
description: |-
1286+
Scheduling controls whether scheduling should be suspended.
1287+
nil means not suspend, no default value, only accepts 'true'.
1288+
Karmada scheduler will pause scheduling when value is true and resume scheduling when it's nil.
1289+
type: boolean
12841290
type: object
12851291
required:
12861292
- resource

pkg/apis/policy/v1alpha1/propagation_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ type Suspension struct {
248248
// Note: Can not co-exist with Dispatching which is used to suspend all.
249249
// +optional
250250
DispatchingOnClusters *SuspendClusters `json:"dispatchingOnClusters,omitempty"`
251+
252+
// Scheduling controls whether scheduling should be suspended.
253+
// nil means not suspend, no default value, only accepts 'true'.
254+
// Karmada scheduler will pause scheduling when value is true and resume scheduling when it's nil.
255+
Scheduling *bool `json:"scheduling,omitempty"`
251256
}
252257

253258
// SuspendClusters represents a group of clusters that should be suspended from propagating.

pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)