Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <[email protected]>
  • Loading branch information
xhebox committed Jul 27, 2023
1 parent c6af5da commit c50c531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/api-references/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -25498,9 +25498,9 @@ github.com/pingcap/tidb-operator/pkg/apis/label.Label
</td>
<td>
<em>(Optional)</em>
<p>MatchLabels is used to overwrite generated corev1.TopologySpreadConstraints.LabelSelector</p>
<p>corev1.TopologySpreadConstraint generated in component_spec.go will set a
NodeSelector automatically with some KV.
<p>MatchLabels is used to overwrite generated corev1.TopologySpreadConstraints.LabelSelector
corev1.TopologySpreadConstraint generated in component_spec.go will set a
LabelSelector automatically with some KV.
Historically, it is l[&ldquo;comp&rdquo;] = &ldquo;&rdquo; for component tiproxy. And we will use
MatchLabels to keep l[&ldquo;comp&rdquo;] = &ldquo;&rdquo; for old clusters with tiproxy/</p>
</td>
Expand Down
3 changes: 1 addition & 2 deletions pkg/apis/pingcap/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3004,9 +3004,8 @@ type TopologySpreadConstraint struct {
// See pkg/apis/pingcap/v1alpha1/tidbcluster_component.go#TopologySpreadConstraints()
TopologyKey string `json:"topologyKey"`
// MatchLabels is used to overwrite generated corev1.TopologySpreadConstraints.LabelSelector
//
// corev1.TopologySpreadConstraint generated in component_spec.go will set a
// NodeSelector automatically with some KV.
// LabelSelector automatically with some KV.
// Historically, it is l["comp"] = "" for component tiproxy. And we will use
// MatchLabels to keep l["comp"] = "" for old clusters with tiproxy/
// +optional
Expand Down

0 comments on commit c50c531

Please sign in to comment.