From 2ec34f5210f5ca4a75132da4a33ffb1b85b5d3c7 Mon Sep 17 00:00:00 2001 From: Hu Zhou Date: Fri, 17 Jan 2020 11:19:18 +0200 Subject: [PATCH] Add maintenance toleration for cpu_pooler_config Change-Id: If8730e5246f21b1245c41543de9d22fe5539edc3 Signed-off-by: Hu Zhou --- ansible/roles/cpupooler/templates/cpu_pooler_config.yaml.j2 | 5 +++++ rpmbuild.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ansible/roles/cpupooler/templates/cpu_pooler_config.yaml.j2 b/ansible/roles/cpupooler/templates/cpu_pooler_config.yaml.j2 index c9ee90c..ce3a804 100644 --- a/ansible/roles/cpupooler/templates/cpu_pooler_config.yaml.j2 +++ b/ansible/roles/cpupooler/templates/cpu_pooler_config.yaml.j2 @@ -28,5 +28,10 @@ limitations under the License. {% endfor %} nodeSelector: nodename: "{{ hostdata['nodename'] | default('') }}" + tolerations: + - key: "node-maintenancemode" + value: "enabled" + operator: "Equal" + effect: "NoExecute" {% endif %} {% endfor %} diff --git a/rpmbuild.spec b/rpmbuild.spec index 339b320..cc237ca 100644 --- a/rpmbuild.spec +++ b/rpmbuild.spec @@ -16,7 +16,7 @@ %define COMPONENT_PART process-starter %define RPM_NAME caas-%{COMPONENT} %define RPM_MAJOR_VERSION 0.3.0 -%define RPM_MINOR_VERSION 8 +%define RPM_MINOR_VERSION 9 %define go_version 1.12.10 %define CPUPOOLER_VERSION e0459346946b0907d26cd3d79dc54feb2c625286 %define DEP_MAN_VERSION 0.5.4 -- 2.16.6