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

tickets/DM-48511: Fix redis values configuration #4364

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Fireye04
Copy link
Member

No description provided.

Copy link
Member

@afausti afausti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creating a KafkaTopic resource for backpack is the right move.
I've made a few suggestions to improve the configuration.

@@ -110,3 +110,10 @@ redis:

# -- Affinity rules for the Redis pod
affinity: {}

cluster:
name: backpack
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the name of the Kafka cluster that backpack uses, i.e "sasquatch"

name: backpack

strimzi:
enabled: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just list the Kafka topics you want to create here, assuming that Strimzi is deployed.


strimzi:
enabled: true
topics: [lsst.backpack.usgs-earthquake-data]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you group all configuration related to Kafka for example:

kafka:
  cluster:
    name: sasquatch
  topics:
    - lsst.backpack.usgs-earthquake-data

@@ -0,0 +1,15 @@
{{- if .Values.strimzi.enabled }}
Copy link
Member

@afausti afausti Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't really test this effectively here, so just assume Strimzi is deployed and that backpack depends on it.

@@ -0,0 +1,15 @@
{{- if .Values.strimzi.enabled }}
{{- $cluster := .Values.cluster.name }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the suggested configuration below, this would become:

{{- $cluster := .Values.kafka.cluster.name }}

@@ -0,0 +1,15 @@
{{- if .Values.strimzi.enabled }}
{{- $cluster := .Values.cluster.name }}
{{- range $topic := .Values.strimzi.topics }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this would become:

{{- range $topic := .Values.kafka.topics }}

replicas: 3
partitions: 1
{{- end }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the extra end too.

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

Successfully merging this pull request may close these issues.

2 participants