-
Bug
-
Resolution: Done
-
Major
-
1.5.0.GA
-
None
-
-
-
- Set a blank value for toleration, please refer to the sample configuration(*1)
- (FYI, Reproduction is possible without using "taint" for nodes)
- ==> Kafka cluster keeps rolling updates repeatedly
- When to set blank value for toleration(*1) Kafka cluster keeps rolling updates repeatedly.
- The following debug log(*2) is output from the cluster operator. I guess, the Cluster Operator cannot distinguish between null and blank strings, and thus a diff is found repeatedly.
(*1) toleration set to a blank value
apiVersion: kafka.strimzi.io/v1beta1
kind: Kafka
spec:
kafka:
template:
pod:
tolerations:
- effect: NoSchedule
key: kafkarole
operator: Equal
value: '' # HERE
(*2) Cluster Operator debug log:
strimzi-cluster-operator-b88dc78c5-h5z7j strimzi-cluster-operator 2020-06-30 06:34:01 DEBUG StatefulSetDiff:101 - StatefulSet p02690955/my-cluster-kafka differs: {"op":"add","path":"/spec/template/spec/tolerations/0/value","value":""} strimzi-cluster-operator-b88dc78c5-h5z7j strimzi-cluster-operator 2020-06-30 06:34:01 DEBUG StatefulSetDiff:102 - Current StatefulSet path /spec/template/spec/tolerations/0/value has value strimzi-cluster-operator-b88dc78c5-h5z7j strimzi-cluster-operator 2020-06-30 06:34:01 DEBUG StatefulSetDiff:103 - Desired StatefulSet path /spec/template/spec/tolerations/0/value has value ""