This is an automated email from the ASF dual-hosted git repository.

suneet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 1dbd005df6a updated docs with behavior for empty collections in pod 
template selector config (#17464)
1dbd005df6a is described below

commit 1dbd005df6a7821ddbdd1599de132403abde1fb2
Author: Kiran Gadhave <[email protected]>
AuthorDate: Tue Nov 12 14:21:27 2024 -0700

    updated docs with behavior for empty collections in pod template selector 
config (#17464)
---
 docs/development/extensions-contrib/k8s-jobs.md | 34 +++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/docs/development/extensions-contrib/k8s-jobs.md 
b/docs/development/extensions-contrib/k8s-jobs.md
index 11663642bdd..d33db3e95df 100644
--- a/docs/development/extensions-contrib/k8s-jobs.md
+++ b/docs/development/extensions-contrib/k8s-jobs.md
@@ -599,6 +599,40 @@ Druid selects the pod templates as follows:
 In this example, if there is an `index_kafka` task for the `wikipedia` 
datasource with the tag `userProvidedTag: tag1`,
 Druid selects the pod template `podSpecWithHighMemRequests.yaml`.
 
+In the above example, for selection key `podSpec1` we didn't specify task 
`type`. This is equivalent to setting `type` to `null` or an empty array.
+All three examples below are equivalent.
+
+- Not setting `type`
+    ```json
+    {
+      "selectionKey": "podSpec1",
+      "context.tags": { "userProvidedTag": ["tag1", "tag2"] },
+      "dataSource": ["wikipedia"]
+    }
+    ```
+
+- Setting `type` to `null`
+    ```json
+    {
+      "selectionKey": "podSpec1",
+      "context.tags": { "userProvidedTag": ["tag1", "tag2"] },
+      "dataSource": ["wikipedia"],
+      "type": null
+    }
+    ```
+
+- Setting `type` to an empty array
+    ```json
+    {
+      "selectionKey": "podSpec1",
+      "context.tags": { "userProvidedTag": ["tag1", "tag2"] },
+      "dataSource": ["wikipedia"],
+      "type": []
+    }
+    ```
+
+In all the above cases, Druid will match the selector to any value of task 
type. Druid applies similar logic for `dataSource`. For `context.tags` setting 
`null` or an empty object `{}` is equivalent. 
+
 ### Properties
 |Property| Possible Values | Description                                       
                                                                                
                                                                                
                               |Default|required|
 
|--------|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|--------|


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to