Skip to content

Commit

Permalink
fix: we dont want the username and password for bufstream at the mome…
Browse files Browse the repository at this point in the history
…nt (#305)

Co-authored-by: Zachary Blasczyk <[email protected]>
  • Loading branch information
danielpanzella and zacharyblasczyk authored Jan 10, 2025
1 parent 05fea54 commit 5cff0a3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/operator-wandb/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ dependencies:
- name: wandb-base
repository: file://../wandb-base
version: 0.1.1
digest: sha256:3c02029e1921428d7f45866291a8c42b79894505ee47864c54f34fcd847b2793
generated: "2024-12-19T11:00:55.672581+05:30"
digest: sha256:94b5b6f58c500f9f5fbbd39b2f059d90dccd091d5e03c4cb838a9440b5e7953f
generated: "2025-01-10T15:30:55.673078-08:00"
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dependencies:
- name: bufstream
version: "0.3.1"
repository: file://charts/bufstream
condition: bufstream.install
condition: global.beta.bufstream.enabled
- name: otel
version: "*.*.*"
repository: file://charts/otel
Expand Down
2 changes: 2 additions & 0 deletions charts/operator-wandb/charts/app/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ app deployments.
{{- define "app.runUpdateShadowTopic" -}}
{{- if .Values.global.pubSub.enabled -}}
pubsub:/{{ .Values.global.pubSub.project }}/{{ .Values.global.pubSub.runUpdateShadowTopic }}
{{- else if .Values.global.beta.bufstream.enabled -}}
kafka://$(KAFKA_BROKER_HOST):$(KAFKA_BROKER_PORT)/$(KAFKA_TOPIC_RUN_UPDATE_SHADOW_QUEUE)?producer_batch_bytes=1048576&num_partitions=$(KAFKA_RUN_UPDATE_SHADOW_QUEUE_NUM_PARTITIONS)&replication_factor=3
{{- else -}}
kafka://$(KAFKA_CLIENT_USER):$(KAFKA_CLIENT_PASSWORD)@$(KAFKA_BROKER_HOST):$(KAFKA_BROKER_PORT)/$(KAFKA_TOPIC_RUN_UPDATE_SHADOW_QUEUE)?producer_batch_bytes=1048576&num_partitions=$(KAFKA_RUN_UPDATE_SHADOW_QUEUE_NUM_PARTITIONS)&replication_factor=3
{{- end -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ Create the name of the service account to use
{{- define "flat-run-fields-updater.runUpdateShadowQueue" -}}
{{- if .Values.global.pubSub.enabled -}}
pubsub:/{{ .Values.global.pubSub.project }}/{{ .Values.global.pubSub.runUpdateShadowTopic }}/{{ .Values.pubSub.subscription }}
{{- else if .Values.global.beta.bufstream.enabled -}}
kafka://$(KAFKA_BROKER_HOST):$(KAFKA_BROKER_PORT)/$(KAFKA_TOPIC_RUN_UPDATE_SHADOW_QUEUE)?producer_batch_bytes=1048576&num_partitions=$(KAFKA_RUN_UPDATE_SHADOW_QUEUE_NUM_PARTITIONS)&replication_factor=3
{{- else -}}
kafka://$(KAFKA_CLIENT_USER):$(KAFKA_CLIENT_PASSWORD)@$(KAFKA_BROKER_HOST):9092/$(KAFKA_TOPIC_RUN_UPDATE_SHADOW_QUEUE)?consumer_group_id=default-group&num_partitions=$(KAFKA_RUN_UPDATE_SHADOW_QUEUE_NUM_PARTITIONS)&replication_factor=3
{{- end -}}
Expand Down
2 changes: 2 additions & 0 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ global:
beta:
glue:
enabled: false
bufstream:
enabled: false

executor:
enabled: false
Expand Down

0 comments on commit 5cff0a3

Please sign in to comment.