nicolaferraro commented on a change in pull request #723: Automatically
configure global build strategy
URL: https://github.com/apache/camel-k/pull/723#discussion_r290733665
##########
File path: pkg/controller/build/schedule_pod.go
##########
@@ -135,6 +156,9 @@ func newBuildPod(build *v1alpha1.Build, operatorImage
string) *corev1.Pod {
ObjectMeta: metav1.ObjectMeta{
Namespace: build.Namespace,
Name: buildPodName(build.Spec.Meta),
+ Labels: map[string]string{
+ "camel.apache.org/build": build.Name,
+ },
},
Spec: corev1.PodSpec{
ServiceAccountName: "camel-k-operator",
Review comment:
Good point. Ok, if we create a reduced service account for builds, then we
better use it in same namespace and so we need the previous permissions :)
(Future usage is actual)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services