Skip to content

Commit 9918f29

Browse files
authored
feat(tiflash): support tiflash ready api (#6523)
1 parent 6fdada6 commit 9918f29

30 files changed

Lines changed: 238 additions & 168 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;UseSchedulingReadyAPI;UseTiKVReadyAPI;UsePDReadyAPIV2
21+
// +kubebuilder:validation:Enum=FeatureModification;VolumeAttributesClass;DisablePDDefaultReadinessProbe;UsePDReadyAPI;SessionTokenSigning;ClusterSubdomain;TerminableLogTailer;UseTSOReadyAPI;UseSchedulingReadyAPI;UseTiKVReadyAPI;UsePDReadyAPIV2;UseTiFlashReadyAPI
2222
// +enum
2323
type Feature string
2424

@@ -98,4 +98,8 @@ const (
9898
// UsePDReadyAPIV2 means use PD's /readyz API as the readiness probe.
9999
UsePDReadyAPIV2 Feature = "UsePDReadyAPIV2"
100100
UsePDReadyAPIV2Stage FeatureStage = FeatureStageAlpha
101+
102+
// UseTiFlashReadyAPI means use TiFlash's /readyz API as the readiness probe.
103+
UseTiFlashReadyAPI Feature = "UseTiFlashReadyAPI"
104+
UseTiFlashReadyAPIStage FeatureStage = FeatureStageAlpha
101105
)

manifests/crd/core.pingcap.com_clusters.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ spec:
9797
- UseSchedulingReadyAPI
9898
- UseTiKVReadyAPI
9999
- UsePDReadyAPIV2
100+
- UseTiFlashReadyAPI
100101
type: string
101102
required:
102103
- name
@@ -305,6 +306,7 @@ spec:
305306
- UseSchedulingReadyAPI
306307
- UseTiKVReadyAPI
307308
- UsePDReadyAPIV2
309+
- UseTiFlashReadyAPI
308310
type: string
309311
stage:
310312
type: string

manifests/crd/core.pingcap.com_pdgroups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ spec:
115115
- UseSchedulingReadyAPI
116116
- UseTiKVReadyAPI
117117
- UsePDReadyAPIV2
118+
- UseTiFlashReadyAPI
118119
type: string
119120
type: array
120121
replicas:

manifests/crd/core.pingcap.com_pds.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ spec:
9191
- UseSchedulingReadyAPI
9292
- UseTiKVReadyAPI
9393
- UsePDReadyAPIV2
94+
- UseTiFlashReadyAPI
9495
type: string
9596
type: array
9697
image:

manifests/crd/core.pingcap.com_replicationworkergroups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ spec:
106106
- UseSchedulingReadyAPI
107107
- UseTiKVReadyAPI
108108
- UsePDReadyAPIV2
109+
- UseTiFlashReadyAPI
109110
type: string
110111
type: array
111112
replicas:

manifests/crd/core.pingcap.com_replicationworkers.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ spec:
9191
- UseSchedulingReadyAPI
9292
- UseTiKVReadyAPI
9393
- UsePDReadyAPIV2
94+
- UseTiFlashReadyAPI
9495
type: string
9596
type: array
9697
image:

manifests/crd/core.pingcap.com_schedulergroups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ spec:
110110
- UseSchedulingReadyAPI
111111
- UseTiKVReadyAPI
112112
- UsePDReadyAPIV2
113+
- UseTiFlashReadyAPI
113114
type: string
114115
type: array
115116
replicas:

manifests/crd/core.pingcap.com_schedulers.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ spec:
9696
- UseSchedulingReadyAPI
9797
- UseTiKVReadyAPI
9898
- UsePDReadyAPIV2
99+
- UseTiFlashReadyAPI
99100
type: string
100101
type: array
101102
image:

manifests/crd/core.pingcap.com_schedulinggroups.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ spec:
105105
- UseSchedulingReadyAPI
106106
- UseTiKVReadyAPI
107107
- UsePDReadyAPIV2
108+
- UseTiFlashReadyAPI
108109
type: string
109110
type: array
110111
replicas:

manifests/crd/core.pingcap.com_schedulings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ spec:
9191
- UseSchedulingReadyAPI
9292
- UseTiKVReadyAPI
9393
- UsePDReadyAPIV2
94+
- UseTiFlashReadyAPI
9495
type: string
9596
type: array
9697
image:

0 commit comments

Comments
 (0)