File tree Expand file tree Collapse file tree 10 files changed +506
-2
lines changed
Expand file tree Collapse file tree 10 files changed +506
-2
lines changed Original file line number Diff line number Diff line change 4949
5050 - name : Deploy eoAPI
5151 id : deploy
52- continue-on-error : true
5352 run : |
5453 echo "=== Starting eoAPI deployment ==="
5554 export RELEASE_NAME="$RELEASE_NAME"
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88## [ Unreleased]
99
1010### Added
11+ - Added Knative integration for CloudEvents notifications
1112- Added local testing with k3s and minikube
1213- Base local development values file (` local-base-values.yaml ` )
1314- Unified local cluster management with ` CLUSTER_TYPE ` variable
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ dependencies:
5454 repository : " https://devseed.com/eoapi-k8s/"
5555 condition : postgrescluster.enabled
5656 - name : eoapi-notifier
57- version : 0.0.8
57+ version : 0.0.9
5858 repository : " oci://ghcr.io/developmentseed/charts"
5959 condition : eoapi-notifier.enabled
60+ - name : knative-operator
61+ version : 1.17.8
62+ repository : https://knative.github.io/operator
63+ condition : knative.enabled
Original file line number Diff line number Diff line change @@ -95,3 +95,35 @@ ingress:
9595 host : " localhost"
9696 tls :
9797 enabled : false # Simplify for local development
98+
99+ eoapi-notifier :
100+ enabled : true
101+ serviceAccount :
102+ create : false
103+ name : " "
104+ sources :
105+ - type : pgstac
106+ config :
107+ connection :
108+ existingSecret :
109+ name : " eoapi-db-pguser-pgstac"
110+ keys :
111+ username : " user"
112+ password : " password"
113+ host : " host"
114+ port : " port"
115+ database : " dbname"
116+ outputs :
117+ - type : cloudevents
118+ config :
119+ source : " /eoapi/pgstac"
120+ event_type : " org.eoapi.stac.item"
121+
122+ knative :
123+ enabled : true
124+ version : " 1.17"
125+ cloudEventsSink :
126+ enabled : true
127+
128+ knative-operator :
129+ tag : " v1.17.8"
Original file line number Diff line number Diff line change 1+ {{- $hasCloudEventsOutput := false }}
2+ {{- range (index .Values "eoapi-notifier").outputs }}
3+ {{- if eq .type "cloudevents" }}
4+ {{- $hasCloudEventsOutput = true }}
5+ {{- end }}
6+ {{- end }}
7+ {{- if and (index .Values "eoapi-notifier").enabled .Values.knative.enabled .Values.knative.cloudEventsSink.enabled $hasCloudEventsOutput }}
8+ ---
9+ apiVersion : serving.knative.dev/v1
10+ kind : Service
11+ metadata :
12+ name : eoapi-cloudevents-sink
13+ namespace : {{ .Release.Namespace }}
14+ labels :
15+ {{- include "eoapi.labels" . | nindent 4 }}
16+ app.kubernetes.io/component : cloudevents-sink
17+ annotations :
18+ helm.sh/hook : " post-install,post-upgrade"
19+ helm.sh/hook-weight : " 10"
20+ helm.sh/hook-delete-policy : " before-hook-creation"
21+ spec :
22+ template :
23+ metadata :
24+ annotations :
25+ autoscaling.knative.dev/minScale : " 1"
26+ autoscaling.knative.dev/maxScale : " 1"
27+ labels :
28+ {{- include "eoapi.selectorLabels" . | nindent 8 }}
29+ app.kubernetes.io/component : cloudevents-sink
30+ spec :
31+ containers :
32+ - name : cloudevents-sink
33+ image : gcr.io/knative-samples/helloworld-go:latest
34+ ports :
35+ - containerPort : 8080
36+ env :
37+ - name : TARGET
38+ value : " eoAPI CloudEvents Sink"
39+ readinessProbe :
40+ httpGet :
41+ path : /
42+ port : 8080
43+ initialDelaySeconds : 5
44+ periodSeconds : 10
45+ livenessProbe :
46+ httpGet :
47+ path : /
48+ port : 8080
49+ initialDelaySeconds : 15
50+ periodSeconds : 20
51+
52+ {{- end }}
You can’t perform that action at this time.
0 commit comments