From ec8b2da4af337248ffc05399fbf39d2ba6aa51e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Hu=CC=88ning?= Date: Tue, 9 Jan 2018 16:31:44 +0100 Subject: [PATCH] added agentDaemonsetTolerationKeyEnv Var to be able to set a Toleration Key added new option to example rook-operator.yaml updated tests for the AGENT_TOLERATION_KEY env var --- cluster/examples/kubernetes/rook-operator.yaml | 6 +++++- pkg/operator/agent/agent.go | 10 ++++++---- pkg/operator/agent/agent_test.go | 4 ++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/cluster/examples/kubernetes/rook-operator.yaml b/cluster/examples/kubernetes/rook-operator.yaml index 021f1e73c..d30267ec1 100644 --- a/cluster/examples/kubernetes/rook-operator.yaml +++ b/cluster/examples/kubernetes/rook-operator.yaml @@ -124,9 +124,13 @@ spec: # To disable RBAC, uncomment the following: # - name: RBAC_ENABLED # value: "false" - # Rook Agent toleration. Choose between NoSchedule, PreferNoSchedule and NoExecute: + # Rook Agent toleration. Will tolerate all taints with all keys. + # Choose between NoSchedule, PreferNoSchedule and NoExecute: # - name: AGENT_TOLERATION # value: "NoSchedule" + # (Optional) Rook Agent toleration key. Set this to the key of the taint you want to tolerate + # - name: AGENT_TOLERATION_KEY + # value: "