lsergio commented on code in PR #4968: URL: https://github.com/apache/camel-k/pull/4968#discussion_r1419293642
########## docs/modules/traits/pages/builder.adoc: ########## @@ -98,6 +98,33 @@ Syntax: [configmap\|secret]:name[/key], where name represents the resource name, | []string | A list of limit memory configuration for the specific task with format `<task-name>:<limit-memory-conf>`. +| builder.node-selector +| map[string]string +| Defines a set of nodes the builder pod is eligible to be scheduled on, based on labels on the node. + |=== // End of autogenerated code - DO NOT EDIT! (configuration) + +== Node Selectors + +With this trait you will also be able to define node selectors for the `builder` pod when using the `pod`` build strategy. +Here is a simple example: + +.template.yaml +[source,yaml] +---- + traits: + builder: + nodeSelector: + size: large +---- + +The `builder` pod will be created with a node selector that allows it to run only on nodes where the `size` label is equal to `large`. + +Node selectors can be specified when running an integration with the CLI: + +[source,console] +---- +$ kamel run --trait builder.node-selector.size=large integration.groovy Review Comment: I tested it exactly like this and it worked. I think quotes are not required as there are spaces in the label. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org