Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External kafka configuration does not trigger a provisioning #1603

Open
1 task done
bmassemin opened this issue Nov 14, 2024 · 1 comment
Open
1 task done

External kafka configuration does not trigger a provisioning #1603

bmassemin opened this issue Nov 14, 2024 · 1 comment

Comments

@bmassemin
Copy link
Contributor

bmassemin commented Nov 14, 2024

Issue submitter TODO list

  • I've searched for an already existing issues here

Describe the bug (actual behavior)

Consumers complain about missing topics.

Expected behavior

The pod for kafka provisioning is not deployed as it is with kafka.enabled: true

values.yaml

    externalKafka:
      host: "redpanda-0.redpanda.sentry.svc.cluster.local."
      port: 9093
      sasl:
        mechanism: SCRAM-SHA-512
        username: user
        password: password
      security:
        protocol: SASL_PLAINTEXT
    kafka:
      enabled: false
      provisioning:
        enabled: true

Helm chart version

26.5.0

Steps to reproduce

  • deploy and external kafka
  • use my config
  • wait for deployment, no kafka provisioning is running

Screenshots

No response

Logs

No response

Additional context

Provisioning is not evaluated in the template if kafka.enabled: false:

{{- if .Values.kafka.enabled -}}
{{ if .Values.kafka.provisioning.enabled }}
# Set partition counts for provisioning topics from kafka chart.
TOPIC_PARTITION_COUNTS = {
{{- $numPartitions := .Values.kafka.provisioning.numPartitions -}}
{{- range .Values.kafka.provisioning.topics }}
{{ .name | quote }}: {{ default $numPartitions .partitions }},
{{- end }}
}
{{- end -}}
{{- end }}

@GEEugene
Copy link

You can partially solve this problem by setting up snubaInit.kafka.enabled: true
And then create manually some topics:
#901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants