-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add storeLabels setting #527
add storeLabels setting #527
Conversation
@@ -192,6 +193,14 @@ tikv: | |||
# effect: "NoSchedule" | |||
annotations: {} | |||
|
|||
## storeLabels is used to define store label keys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to use the location awareness feature of TiKV, users have to label their k8s nodes with the same labels.
} | ||
if host, found := ls[apis.LabelHostname]; found { | ||
labels["host"] = host | ||
if storeLabel == "host" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a TODO note that this needs to be changed when PD supports label key containing slash character.
/run-e2e-tests |
Co-Authored-By: Tennix <tennix@users.noreply.github.com>
Co-Authored-By: Tennix <tennix@users.noreply.github.com>
…/tidb-operator into refine-store-labels
/run-e2e-tests |
/run-e2e-tests |
/run-e2e-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-e2e-tests |
/run-e2e-tests |
/run-e2e-tests |
@tennix this pr needs another approval |
Co-authored-by: Ran <huangran@pingcap.com>
What problem does this PR solve?
What is changed and how it works?
Check List
Tests
Code changes
Side effects
user must know current storeLabel cannot support contains the slash character.
Related changes
Does this PR introduce a user-facing change?: