-
Bug
-
Resolution: Done
-
Major
-
1.13.0.Final
-
None
-
False
-
False
-
When Kubernetes instance contains KafkaTopic with configuration containing non string values, for example:
kind: KafkaTopic apiVersion: kafka.strimzi.io/v1beta2 metadata: name: my-topic labels: strimzi.io/cluster: my-cluster namespace: ksuta-test spec: partitions: 10 replicas: 3 config: retention.ms: 604800000 segment.bytes: 1073741824
then operator fails to reconcile with error:
W1213 19:34:44.262219 1 reflector.go:436] pkg/mod/k8s.io/client-go@v0.20.7/tools/cache/reflector.go:167: watch of *v1beta2.KafkaTopic ended with: an error on the server ("unable to decode an event from the watch stream: unable to decode watch event: v1beta2.KafkaTopic.Spec: v1beta2.KafkaTopicSpec.Config: ReadString: expects \" or n, but found 6, error found in #10 byte of ...|tion.ms\":604800000,\"|..., bigger context ...|-58cef2d15427\"},\"spec\":{\"config\":{\"retention.ms\":604800000,\"segment.bytes\":1073741824},\"partitions\":|...") has prevented the request from succeeding E1213 19:34:45.851081 1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.20.7/tools/cache/reflector.go:167: Failed to watch *v1beta2.KafkaTopic: failed to list *v1beta2.KafkaTopic: v1beta2.KafkaTopicList.Items: []v1beta2.KafkaTopic: v1beta2.KafkaTopic.Spec: v1beta2.KafkaTopicSpec.Config: ReadString: expects " or n, but found 6, error found in #10 byte of ...|tion.ms":604800000,"|..., bigger context ...|-58cef2d15427"},"spec":{"config":{"retention.ms":604800000,"segment.bytes":1073741824},"partitions":|...