Skip to content

Commit

Permalink
feat(dash): add initial kafka injector support
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 23, 2024
1 parent a5baed0 commit b46535f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions crates/dash/operator/src/ctx/injectors/kafka.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: "{{ metadata.name }}"
namespace: "{{ metadata.namespace }}"
spec:
kafka:
replicas: 1
listeners:
- name: plain
port: 9092
type: internal
tls: false
- name: tls
port: 9093
type: internal
tls: true
config:
default.replication.factor: 1
min.insync.replicas: 1
offsets.topic.replication.factor: 1
transaction.state.log.min.isr: 1
transaction.state.log.replication.factor: 1
storage:
type: ephemeral
zookeeper:
replicas: 1
storage:
type: ephemeral
entityOperator:
topicOperator: {}
userOperator: {}
1 change: 1 addition & 0 deletions crates/dash/operator/src/ctx/injectors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ macro_rules! define_injector {
}

define_injector![
kafka as "kafka",
nats as "nats",
otlp as "dash-observability",
];
Expand Down
1 change: 1 addition & 0 deletions crates/dash/operator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub(crate) mod consts {
async fn main() {
join!(
self::ctx::function::Ctx::spawn_crd(),
self::ctx::injectors::kafka::Ctx::spawn(),
self::ctx::injectors::nats::Ctx::spawn(),
self::ctx::injectors::otlp::Ctx::spawn(),
self::ctx::job::Ctx::spawn_crd(),
Expand Down

0 comments on commit b46535f

Please sign in to comment.