From 6b393d7312852963d496021bfa42475ffa9b7e6e Mon Sep 17 00:00:00 2001 From: Dmitry Dodzin Date: Mon, 19 Aug 2024 16:15:53 +0300 Subject: [PATCH] Add option to specify operator deployment tolerations --- mirrord-operator/Chart.yaml | 2 +- mirrord-operator/templates/deployment.yaml | 6 ++++++ mirrord-operator/values.yaml | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/mirrord-operator/Chart.yaml b/mirrord-operator/Chart.yaml index 2800fc0..136b4d3 100644 --- a/mirrord-operator/Chart.yaml +++ b/mirrord-operator/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.6.7 +version: 1.6.8 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/mirrord-operator/templates/deployment.yaml b/mirrord-operator/templates/deployment.yaml index 2654041..8f6f0ad 100644 --- a/mirrord-operator/templates/deployment.yaml +++ b/mirrord-operator/templates/deployment.yaml @@ -37,6 +37,12 @@ spec: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "443" + {{- if .Values.operator.tolerations }} + tolerations: + {{- range .Values.operator.tolerations }} + - {{ toYaml . }} + {{- end }} + {{- end }} containers: - env: - name: RUST_LOG diff --git a/mirrord-operator/values.yaml b/mirrord-operator/values.yaml index 82bb051..9559317 100644 --- a/mirrord-operator/values.yaml +++ b/mirrord-operator/values.yaml @@ -40,6 +40,13 @@ operator: cpu: 200m memory: 200Mi + ## Allow to specify custom tolerations for operator deployment + # tolerations: + # - key: "key1" + # operator: "Equal" + # value: "value1" + # effect: "NoSchedule" + agent: ## example ##