-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Update docs for K8s TaskRunner Dynamic Config #16600
Conversation
@YongGang fyi |
...ain/java/org/apache/druid/k8s/overlord/execution/SelectorBasedPodTemplateSelectStrategy.java
Show resolved
Hide resolved
|
||
return templates.getOrDefault(templateKey, templates.get("base")); | ||
PodTemplate podTemplate = templates.getOrDefault(templateKey, templates.get("base")); |
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.
A non-null podTemplate
will always be returned in this line of code as when loading templates it will make sure base
template get configured here
match any selector in the list, it will use the `base` pod template. | ||
|
||
For a task to match a selector, all the conditions within the selector must match. A selector can match on | ||
- `type`: Type of the task |
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.
- `type`: Type of the task | |
- `type`: Type of the task. |
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.
Thanks for adding these docs! 🦖
|`SelectorBasedPodTemplateSelectStrategy`| This strategy evaluates a series of selectors, known as `selectors`, which are aligned with potential task properties. | false | | ||
#### Pod template selection | ||
|
||
The pod template adapapter can select which pod template should be used for a task using the [task runner execution config](#dynamic-config) |
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.
The pod template adapapter can select which pod template should be used for a task using the [task runner execution config](#dynamic-config) | |
The pod template adapter can select which pod template should be used for a task using the [task runner execution config](#dynamic-config) |
Raised by spell checker
Overruling CI because the k8s extension is not tested in these integration tests |
Description
Mostly a refactor of the docs added in #16510
While writing these docs, I realized that the use of a
defaultKey
in the dynamic config (that I suggested in the original patch) is not actually that helpful, so I removed it from the docs and the code.This PR has: