Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
apiVersion: eventing.kyma-project.io/v1alpha1
apiVersion: eventing.kyma-project.io/v1alpha2
kind: Subscription
metadata:
labels:
scenario: address-completion
name: address-completion-here
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.{provide-your-application-name-as-shown-in-kyma}.Account.Root.Created.v1
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.{provide-your-application-name-as-shown-in-kyma}.Account.Root.Updated.v1
source: "{provide-your-application-name-as-shown-in-kyma}"
types:
- Account.Root.Created.v1
- Account.Root.Updated.v1
typeMatching: standard
sink: http://address-completion-here.{your-namespace}.svc.cluster.local
20 changes: 14 additions & 6 deletions address-completion-s4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,23 @@ This step creats the connection between the two Message Clients in SAP Event Mes

## Using SAP Data Quality Services

### Create the SAP DQS Service Instance and Binding
> [!NOTE]
> SAP Data Quality Services (DQS) are available only for the Cloud Foundry (CF) environment. See the [pricing and region availability details](https://discovery-center.cloud.sap/serviceCatalog/data-quality-services?region=all&tab=service_plan).
> The steps below describe how to create an SAP DSQ service instance in CF and make its credentials available to Kyma.
> For the `addressCleanse` endpoint, see the [API reference](https://api.sap.com/api/mld/resource).

The APIs for the DQS service can be found [here](https://api.sap.com/api/mld/resource). The addressCleanse endpoint is used in this scenario.
### Create an SAP DQS Service Instance in Cloud Foundry

- Apply the service instance
- Set up a subaccount with a CF environment and space in a region where DQS is available (e.g. AWS: Europe (Frankfurt))
- Create an instance named `data-quality-service` of `Data Quality Services` with plan `standard` in that CF space
- Create a Service Key for the instance

```
kubectl apply -f ./k8s/dqs-si.yaml -n dev
kubectl apply -f ./k8s/dqs-sb.yaml -n dev
### Copy the DQS Credentials to Kyma

Copy the CF service key credentials into a Kubernetes Secret using the [secret-from-cf-service-key](../secret-from-cf-service-key/README.md) utility:

```bash
node create-k8s-secret-from-cf-service-key.js data-quality-service-sb {your-service-key-name} | kubectl -n dev apply -f -
```

### Apply the function
Expand Down
20 changes: 6 additions & 14 deletions cdc-webhook/webhook-event-subscription/k8s/subscription.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
apiVersion: eventing.kyma-project.io/v1alpha1
apiVersion: eventing.kyma-project.io/v1alpha2
kind: Subscription
metadata:
name: event-registration-subscription
namespace: cdc
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.cdc.subscription.updated.v1
protocol: ""
protocolsettings: {}
sink: http://event-consumer.cdc.svc.cluster.local
source: ""
types:
- sap.kyma.custom.cdc.subscription.updated.v1
typeMatching: exact
sink: http://event-consumer.cdc.svc.cluster.local
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
apiVersion: eventing.kyma-project.io/v1alpha1
apiVersion: eventing.kyma-project.io/v1alpha2
kind: Subscription
metadata:
name: {{ include "sample-event-trigger-java.fullname" . }}
labels:
{{- include "sample-event-trigger-java.labels" . | nindent 4 }}
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.{{ .Values.subscription.application }}.{{ .Values.subscription.eventType }}.v1
sink: http://{{ include "sample-event-trigger-java.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
source: ""
types:
- sap.kyma.custom.{{ .Values.subscription.application }}.{{ .Values.subscription.eventType }}.v1
typeMatching: exact
sink: http://{{ include "sample-event-trigger-java.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
20 changes: 6 additions & 14 deletions in-cluster-events/functions-javascript/k8s/subscription.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
apiVersion: eventing.kyma-project.io/v1alpha1
apiVersion: eventing.kyma-project.io/v1alpha2
kind: Subscription
metadata:
name: consumer
labels:
scenario: in-cluster-events
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.internal.product.viewed.v1
protocol: ""
protocolsettings: {}
sink: http://consumer.in-cluster-events.svc.cluster.local #this is the service name and port
source: ""
types:
- sap.kyma.custom.internal.product.viewed.v1
typeMatching: exact
sink: http://consumer.in-cluster-events.svc.cluster.local
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
apiVersion: eventing.kyma-project.io/v1alpha1
apiVersion: eventing.kyma-project.io/v1alpha2
kind: Subscription
metadata:
name: event-subscription
namespace: conference-registration
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.app.conference.registration.v1
protocol: ""
protocolsettings: {}
sink: http://event-consumer.conference-registration.svc.cluster.local
source: ""
types:
- sap.kyma.custom.app.conference.registration.v1
typeMatching: exact
sink: http://event-consumer.conference-registration.svc.cluster.local
16 changes: 5 additions & 11 deletions order-validation/lambda/k8s/subscription.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
apiVersion: eventing.kyma-project.io/v1alpha1
apiVersion: eventing.kyma-project.io/v1alpha2
kind: Subscription
metadata:
name: order-validation
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.<ccv2-application>.order.fraudcheck.v1
source: ""
types:
- sap.kyma.custom.<ccv2-application>.order.fraudcheck.v1
typeMatching: exact
sink: http://order-validation.order-validation.svc.cluster.local
16 changes: 5 additions & 11 deletions sample-event-trigger-java/k8s/subscription.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
apiVersion: eventing.kyma-project.io/v1alpha1
apiVersion: eventing.kyma-project.io/v1alpha2
kind: Subscription
metadata:
name: sample-event-trigger-java-subscription
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.{your-connected-commerce-application-name}.order.created.v1
source: ""
types:
- sap.kyma.custom.{your-connected-commerce-application-name}.order.created.v1
typeMatching: exact
sink: http://sample-event-trigger-java.dev.svc.cluster.local
17 changes: 5 additions & 12 deletions sample-websockets/k8s/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,15 @@ spec:
status:
loadBalancer: {}
---
apiVersion: eventing.kyma-project.io/v1alpha1
apiVersion: eventing.kyma-project.io/v1alpha2
kind: Subscription
metadata:
name: websocket-server
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ''
eventType:
property: type
type: exact
value: sap.kyma.custom.mp-gaurav-10-mock-ccv2.order.created.v1
protocolsettings: {}
source: ""
types:
- sap.kyma.custom.mp-gaurav-10-mock-ccv2.order.created.v1
typeMatching: exact
sink: http://websocket-server.dev.svc.cluster.local:8888/events
---
apiVersion: gateway.kyma-project.io/v2
Expand Down
Loading