Skip to content

Commit

Permalink
add ci/cd for tr lorawan
Browse files Browse the repository at this point in the history
  • Loading branch information
luhodaan committed Dec 13, 2024
1 parent d033740 commit 3519f24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
Empty file.
16 changes: 5 additions & 11 deletions transformers/lorawan/infrastructure/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
replicaCount: 1

image:
repository: ghcr.io/noi-techpark/opendatahub-collectors/tr-parking-valgardena-metadata
repository: ghcr.io/noi-techpark/opendatahub-collectors/tr-lorawan
pullPolicy: IfNotPresent
tag: sometaghere

Expand All @@ -11,21 +11,15 @@ imagePullSecrets:
env:
# ODH Core Writer Connection
LOG_LEVEL: "DEBUG"
MQ_QUEUE: parking-valgardena.data
MQ_QUEUE: lorawan.data
MQ_EXCHANGE: routed
MQ_KEY: parking-valgardena.data
MQ_CLIENT: parking-datacollector-valgardena-data-consumer


MQ_META_QUEUE: parking-valgardena.metadata
MQ_META_EXCHANGE: routed
MQ_META_KEY: parking-valgardena.metadata
MQ_META_CLIENT: parking-datacollector-valgardena-metadata-consumer
MQ_KEY: lorawan.data
MQ_CLIENT: lorawan-data-consumer

BDP_BASE_URL: https://share.opendatahub.testingmachine.eu
BDP_PROVENANCE_VERSION:
BDP_PROVENANCE_NAME:
BDP_ORIGIN: GARDENA
BDP_ORIGIN: NOI

envSecretRef:
- name: MQ_URI
Expand Down
6 changes: 0 additions & 6 deletions transformers/parking-valgardena/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ func main() {
failOnError(err, "failed connecting to rabbitmq")
defer rabbit.Close()

fmt.Println("ARRIVES HERE?")
// rabbit.OnClose(func(err *amqp091.Error) {
// slog.Error("rabbitmq connection closed unexpectedly")
// panic(err)
// })

dataMQ, err := rabbit.Consume(env.Env.MQ_EXCHANGE, env.Env.MQ_QUEUE, env.Env.MQ_KEY)
failOnError(err, "failed creating data queue")

Expand Down

0 comments on commit 3519f24

Please sign in to comment.