You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2023/06/19 14:55:58 UTC

[camel-karavan] branch main updated: ServiceAccount for runner #757

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

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 5e22b45c ServiceAccount for runner #757
5e22b45c is described below

commit 5e22b45c83e1b6019f6a114aad4c16491a477897
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Mon Jun 19 10:55:50 2023 -0400

    ServiceAccount for runner #757
---
 .../main/java/org/apache/camel/karavan/service/KubernetesService.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java b/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java
index b6c5df2b..0c59a30c 100644
--- a/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java
+++ b/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java
@@ -453,6 +453,9 @@ public class KubernetesService implements HealthCheck{
         PodSpec spec = new PodSpecBuilder()
                 .withTerminationGracePeriodSeconds(0L)
                 .withContainers(container)
+                .withRestartPolicy("Never")
+                .withServiceAccount("pipeline")
+                .withServiceAccountName("pipeline")
                 .withVolumes(
                         new VolumeBuilder().withName(name).withNewPersistentVolumeClaim(name, false).build())
                 .build();