Skip to content

Commit 14eacc7

Browse files
committed
Bumped eoapi-notifier version.
1 parent 6b29122 commit 14eacc7

File tree

3 files changed

+72
-43
lines changed

3 files changed

+72
-43
lines changed

charts/eoapi/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ dependencies:
5454
repository: "https://devseed.com/eoapi-k8s/"
5555
condition: postgrescluster.enabled
5656
- name: eoapi-notifier
57-
version: 0.0.5
57+
version: 0.0.6
5858
repository: "oci://ghcr.io/developmentseed/charts"
5959
condition: eoapi-notifier.enabled

charts/eoapi/values.schema.json

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,38 @@
352352
"description": "Enable eoAPI notifier for database notifications to CloudEvents"
353353
},
354354
"sources": {
355-
"type": "object",
356-
"properties": {
357-
"pgstac": {
358-
"type": "boolean",
359-
"default": false,
360-
"description": "Enable PostgreSQL notification triggers for STAC item changes"
355+
"type": "array",
356+
"items": {
357+
"type": "object",
358+
"properties": {
359+
"type": {
360+
"type": "string",
361+
"description": "Source type (e.g., pgstac)"
362+
},
363+
"config": {
364+
"type": "object",
365+
"description": "Source-specific configuration"
366+
}
361367
}
362-
}
368+
},
369+
"description": "Notification source configurations"
370+
},
371+
"outputs": {
372+
"type": "array",
373+
"items": {
374+
"type": "object",
375+
"properties": {
376+
"type": {
377+
"type": "string",
378+
"description": "Output type (e.g., cloudevents, mqtt)"
379+
},
380+
"config": {
381+
"type": "object",
382+
"description": "Output-specific configuration"
383+
}
384+
}
385+
},
386+
"description": "Notification output configurations"
363387
},
364388
"config": {
365389
"type": "object",
@@ -369,14 +393,6 @@
369393
"enum": ["DEBUG", "INFO", "WARNING", "ERROR"],
370394
"default": "INFO",
371395
"description": "Log level for eoapi-notifier"
372-
},
373-
"sources": {
374-
"type": "array",
375-
"description": "Notification source configurations"
376-
},
377-
"outputs": {
378-
"type": "array",
379-
"description": "Notification output configurations"
380396
}
381397
}
382398
},

charts/eoapi/values.yaml

Lines changed: 40 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -482,36 +482,49 @@ browser:
482482
docServer:
483483
enabled: true
484484

485+
######################
486+
# NOTIFICATIONS
487+
######################
488+
eoapi-notifier:
489+
enabled: false
490+
sources:
491+
- type: pgstac
492+
config:
493+
# Database connection from existing Kubernetes secret
494+
connection:
495+
existingSecret:
496+
name: ""
497+
keys:
498+
username: "user"
499+
password: "password"
500+
host: "host"
501+
port: "port"
502+
database: "dbname"
503+
504+
# Outputs: Define where notifications are sent
505+
outputs:
506+
- type: mqtt
507+
config:
508+
broker_host: mqtt-broker
509+
broker_port: 1883
510+
# Optional: username, password, use_tls, topic, qos
511+
512+
- type: cloudevents
513+
config:
514+
source: /eoapi/pgstac
515+
event_type: org.eoapi.stac.item
516+
# For KNative SinkBinding:
517+
destination:
518+
ref:
519+
apiVersion: messaging.knative.dev/v1
520+
kind: Broker
521+
name: my-channel-1
522+
namespace: serverless
523+
# For HTTP endpoints, use: endpoint: https://webhook.example.com
524+
485525
# Version being upgraded from, used for migration purposes
486526
# Dont set the value in the values.yaml file
487527
# prefer to set it in the command line
488528
# helm upgrade --set previousVersion=$PREVIOUS_VERSION
489529
# or in the CI/CD pipeline
490530
previousVersion: ""
491-
492-
######################
493-
# NOTIFICATIONS
494-
######################
495-
eoapi-notifier:
496-
enabled: false
497-
config:
498-
logLevel: INFO
499-
sources:
500-
- type: postgres
501-
config:
502-
channel: pgstac_items_change
503-
outputs:
504-
- type: cloudevents
505-
config:
506-
source: /eoapi/pgstac
507-
event_type: org.eoapi.stac.item
508-
destination:
509-
ref:
510-
apiVersion: serving.knative.dev/v1
511-
kind: Service
512-
name: eoapi-cloudevents-sink
513-
secrets:
514-
postgresql:
515-
create: false
516-
env:
517-
POSTGRES_CHANNEL: "pgstac_items_change"

0 commit comments

Comments
 (0)