You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/08/22 05:02:31 UTC

[camel-k] branch main updated: chore: add pod tolerations options to operator

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

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


The following commit(s) were added to refs/heads/main by this push:
     new c1472e34a chore: add pod tolerations options to operator
c1472e34a is described below

commit c1472e34a959a6c2add898aed486be787efb5735
Author: Zhiming <i-...@hotmail.com>
AuthorDate: Fri Aug 19 18:57:26 2022 +0800

    chore: add pod tolerations options to operator
---
 helm/camel-k/README.md               | 1 +
 helm/camel-k/templates/operator.yaml | 4 ++++
 helm/camel-k/values.yaml             | 1 +
 3 files changed, 6 insertions(+)

diff --git a/helm/camel-k/README.md b/helm/camel-k/README.md
index bd97e854b..64807c12f 100644
--- a/helm/camel-k/README.md
+++ b/helm/camel-k/README.md
@@ -82,6 +82,7 @@ Camel K chart and their default values. The chart allows configuration of an `In
 | `operator.global`                      | Indicates if the operator should watch all namespaces                     | `false`                        |
 | `operator.resources`                   | The resource requests and limits to use for the operator                  |                                |
 | `operator.securityContext`             | The (container-related) securityContext to use for the operator           |                                |
+| `operator.tolerations`                 | The list of tolerations to use for the operator                           |                                |
 
 ## Contributing
 
diff --git a/helm/camel-k/templates/operator.yaml b/helm/camel-k/templates/operator.yaml
index 326432e21..b154e1641 100644
--- a/helm/camel-k/templates/operator.yaml
+++ b/helm/camel-k/templates/operator.yaml
@@ -81,3 +81,7 @@ spec:
             {{- toYaml . | nindent 12 }}
           {{- end }}
       serviceAccountName: camel-k-operator
+      {{- with .Values.operator.tolerations }}
+      tolerations:
+        {{- toYaml . | nindent 8 }}
+      {{-end }}
diff --git a/helm/camel-k/values.yaml b/helm/camel-k/values.yaml
index ffec29d8b..337b71a2b 100644
--- a/helm/camel-k/values.yaml
+++ b/helm/camel-k/values.yaml
@@ -27,6 +27,7 @@ operator:
   global: "false"
   resources: {}
   securityContext: {}
+  tolerations: []
 
 platform:
   build: