Skip to content

Commit b38353a

Browse files
authored
feat(scheduling): support health api (#6516)
1 parent 541dd50 commit b38353a

27 files changed

Lines changed: 112 additions & 10 deletions

api/meta/v1alpha1/feature.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package v1alpha1
1818
// NOTE(liubo02): +enum is not supported now, we have to add all enum into comments
1919
// NOTE(liubo02): It's supported by https://github.com/kubernetes-sigs/controller-tools/pull/1179
2020
//
21-
// +kubebuilder:validation:Enum=FeatureModification;VolumeAttributesClass;DisablePDDefaultReadinessProbe;UsePDReadyAPI;SessionTokenSigning;ClusterSubdomain;TerminableLogTailer;UseTSOReadyAPI;UseTiKVReadyAPI
21+
// +kubebuilder:validation:Enum=FeatureModification;VolumeAttributesClass;DisablePDDefaultReadinessProbe;UsePDReadyAPI;SessionTokenSigning;ClusterSubdomain;TerminableLogTailer;UseTSOReadyAPI;UseSchedulingReadyAPI;UseTiKVReadyAPI
2222
// +enum
2323
type Feature string
2424

@@ -86,6 +86,10 @@ const (
8686
UseTSOReadyAPI Feature = "UseTSOReadyAPI"
8787
UseTSOReadyAPIStage FeatureStage = FeatureStageAlpha
8888

89+
// UseSchedulingReadyAPI calls /health api to check readiness for scheduling pods.
90+
UseSchedulingReadyAPI Feature = "UseSchedulingReadyAPI"
91+
UseSchedulingReadyAPIStage FeatureStage = FeatureStageAlpha
92+
8993
// UseTiKVReadyAPI means use TiKV's /ready API as the readiness probe.
9094
UseTiKVReadyAPI Feature = "UseTiKVReadyAPI"
9195
UseTiKVReadyAPIStage FeatureStage = FeatureStageAlpha

manifests/crd/core.pingcap.com_clusters.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ spec:
9494
- ClusterSubdomain
9595
- TerminableLogTailer
9696
- UseTSOReadyAPI
97+
- UseSchedulingReadyAPI
9798
- UseTiKVReadyAPI
9899
type: string
99100
required:
@@ -300,6 +301,7 @@ spec:
300301
- ClusterSubdomain
301302
- TerminableLogTailer
302303
- UseTSOReadyAPI
304+
- UseSchedulingReadyAPI
303305
- UseTiKVReadyAPI
304306
type: string
305307
stage:

manifests/crd/core.pingcap.com_pdgroups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ spec:
112112
- ClusterSubdomain
113113
- TerminableLogTailer
114114
- UseTSOReadyAPI
115+
- UseSchedulingReadyAPI
115116
- UseTiKVReadyAPI
116117
type: string
117118
type: array

manifests/crd/core.pingcap.com_pds.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ spec:
8888
- ClusterSubdomain
8989
- TerminableLogTailer
9090
- UseTSOReadyAPI
91+
- UseSchedulingReadyAPI
9192
- UseTiKVReadyAPI
9293
type: string
9394
type: array

manifests/crd/core.pingcap.com_replicationworkergroups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ spec:
103103
- ClusterSubdomain
104104
- TerminableLogTailer
105105
- UseTSOReadyAPI
106+
- UseSchedulingReadyAPI
106107
- UseTiKVReadyAPI
107108
type: string
108109
type: array

manifests/crd/core.pingcap.com_replicationworkers.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ spec:
8888
- ClusterSubdomain
8989
- TerminableLogTailer
9090
- UseTSOReadyAPI
91+
- UseSchedulingReadyAPI
9192
- UseTiKVReadyAPI
9293
type: string
9394
type: array

manifests/crd/core.pingcap.com_schedulergroups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ spec:
107107
- ClusterSubdomain
108108
- TerminableLogTailer
109109
- UseTSOReadyAPI
110+
- UseSchedulingReadyAPI
110111
- UseTiKVReadyAPI
111112
type: string
112113
type: array

manifests/crd/core.pingcap.com_schedulers.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ spec:
9393
- ClusterSubdomain
9494
- TerminableLogTailer
9595
- UseTSOReadyAPI
96+
- UseSchedulingReadyAPI
9697
- UseTiKVReadyAPI
9798
type: string
9899
type: array

manifests/crd/core.pingcap.com_schedulinggroups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ spec:
102102
- ClusterSubdomain
103103
- TerminableLogTailer
104104
- UseTSOReadyAPI
105+
- UseSchedulingReadyAPI
105106
- UseTiKVReadyAPI
106107
type: string
107108
type: array

manifests/crd/core.pingcap.com_schedulings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ spec:
8888
- ClusterSubdomain
8989
- TerminableLogTailer
9090
- UseTSOReadyAPI
91+
- UseSchedulingReadyAPI
9192
- UseTiKVReadyAPI
9293
type: string
9394
type: array

0 commit comments

Comments
 (0)