lsergio commented on PR #4968: URL: https://github.com/apache/camel-k/pull/4968#issuecomment-1845551541
After my latest changes, I tested the code applying this CR to my cluster: ``` apiVersion: camel.apache.org/v1 kind: Integration metadata: name: test spec: sources: - name: main.groovy content: |- rest("/test-mode") .post() .to("direct:start") from("direct:start").to("log:info") traits: quarkus: buildMode: - "native" builder: nodeSelector: size: large ``` and this is the builder pod: ``` apiVersion: v1 kind: Pod metadata: creationTimestamp: "2023-12-07T15:23:06Z" labels: camel.apache.org/build: kit-clou6miqjnf7ksc5tj6g camel.apache.org/component: builder camel.apache.org/created.by.kind: Integration camel.apache.org/created.by.name: test camel.apache.org/created.by.namespace: sensedia camel.apache.org/created.by.version: "1028014" name: camel-k-kit-clou6miqjnf7ksc5tj6g-builder namespace: sensedia ownerReferences: - apiVersion: camel.apache.org/v1 blockOwnerDeletion: true controller: true kind: Build name: kit-clou6miqjnf7ksc5tj6g uid: 1f7dfb6c-48c4-492b-ab9e-2dbb1408d44e resourceVersion: "1028038" uid: 45b52b58-671f-4247-9f92-89d553e7a5ff spec: containers: - command: - kamel - builder - --namespace - sensedia - --build-name - kit-clou6miqjnf7ksc5tj6g - --task-name - spectrum env: - name: HOME value: /builder/kit-clou6miqjnf7ksc5tj6g image: docker.io/apache/camel-k:2.2.0-SNAPSHOT imagePullPolicy: IfNotPresent name: spectrum resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /builder/kit-clou6miqjnf7ksc5tj6g name: camel-k-builder - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: kube-api-access-dv2xz readOnly: true workingDir: /builder/kit-clou6miqjnf7ksc5tj6g dnsPolicy: ClusterFirst enableServiceLinks: true initContainers: - command: - kamel - builder - --namespace - sensedia - --build-name - kit-clou6miqjnf7ksc5tj6g - --task-name - builder env: - name: HOME value: /builder/kit-clou6miqjnf7ksc5tj6g image: docker.io/apache/camel-k:2.2.0-SNAPSHOT imagePullPolicy: IfNotPresent name: builder resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /builder/kit-clou6miqjnf7ksc5tj6g name: camel-k-builder - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: kube-api-access-dv2xz readOnly: true workingDir: /builder/kit-clou6miqjnf7ksc5tj6g - command: - /bin/bash - -c - cd maven && ./mvnw $(cat MAVEN_CONTEXT) package -Dquarkus.package.type=native -Dmaven.repo.local=./repo image: quay.io/quarkus/ubi-quarkus-mandrel-builder-image:23.0-jdk-17 imagePullPolicy: IfNotPresent name: quarkus-native resources: requests: cpu: "1" memory: 4Gi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /builder/kit-clou6miqjnf7ksc5tj6g name: camel-k-builder - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: kube-api-access-dv2xz readOnly: true workingDir: /builder/kit-clou6miqjnf7ksc5tj6g - command: - kamel - builder - --namespace - sensedia - --build-name - kit-clou6miqjnf7ksc5tj6g - --task-name - package env: - name: HOME value: /builder/kit-clou6miqjnf7ksc5tj6g image: docker.io/apache/camel-k:2.2.0-SNAPSHOT imagePullPolicy: IfNotPresent name: package resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /builder/kit-clou6miqjnf7ksc5tj6g name: camel-k-builder - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: kube-api-access-dv2xz readOnly: true workingDir: /builder/kit-clou6miqjnf7ksc5tj6g nodeSelector: size: large preemptionPolicy: PreemptLowerPriority priority: 0 restartPolicy: Never schedulerName: default-scheduler securityContext: fsGroup: 1001 runAsGroup: 1001 runAsUser: 1001 serviceAccount: camel-k-builder serviceAccountName: camel-k-builder terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 volumes: - emptyDir: {} name: camel-k-builder - name: kube-api-access-dv2xz projected: defaultMode: 420 sources: - serviceAccountToken: expirationSeconds: 3607 path: token - configMap: items: - key: ca.crt path: ca.crt name: kube-root-ca.crt - downwardAPI: items: - fieldRef: apiVersion: v1 fieldPath: metadata.namespace path: namespace status: conditions: - lastProbeTime: null lastTransitionTime: "2023-12-07T15:23:06Z" message: '0/3 nodes are available: 3 node(s) didn''t match Pod''s node affinity/selector. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling..' reason: Unschedulable status: "False" type: PodScheduled phase: Pending qosClass: Burstable ``` The nodeSelector was generated as expected -- 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