Skip to content

Kafka throws with duplicate entries when using helm v4 #17

@sotojn

Description

@sotojn

Problem

I've updated to helm v4 and tried running kafka with ts-scripts k8s-env and got the following error:

STDERR:
  Error: failed to create typed patch object (services-dev1/kafka; apps/v1, Kind=StatefulSet): .spec.template.spec.containers[name="kafka-broker"].env: duplicate entries for key [name="KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR"]

COMBINED OUTPUT:
  Release "kafka" does not exist. Installing it now.
  Error: failed to create typed patch object (services-dev1/kafka; apps/v1, Kind=StatefulSet): .spec.template.spec.containers[name="kafka-broker"].env: duplicate entries for key [name="KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR"]

Proposed Solution

Change the way the charts set its options so that these errors don't occur.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions