From 8bcb898f21933a7b9d5426916a6d99953c3a1f87 Mon Sep 17 00:00:00 2001 From: Gianluca Mardente Date: Thu, 6 Feb 2025 14:14:10 +0100 Subject: [PATCH] Fix typo in the nats example --- docs/events/nats.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/events/nats.md b/docs/events/nats.md index 10f84978..ccad8093 100644 --- a/docs/events/nats.md +++ b/docs/events/nats.md @@ -291,7 +291,7 @@ Send now a CloudEvent representing user __mgianluc__ login: CLOUDEVENT_JSON=$(cat << EOF { "specversion": "1.0", - "type": "uth.example.com.login", + "type": "auth.example.com.login", "source": "auth.example.com", "id": "10001", "subject": "mgianluc", @@ -305,7 +305,7 @@ EOF ``` ``` -KUBECONFIG= kubectl exec -it deployment/nats-box -n nats -- nats pub user-login $CLOUDEVENT_JSON --user=admin --password=my-password +KUBECONFIG= kubectl exec -it deployment/nats-box -n nats -- nats pub user-operation $CLOUDEVENT_JSON --user=admin --password=my-password ``` Verify namespace is created: @@ -341,7 +341,7 @@ EOF ``` ``` -KUBECONFIG= kubectl exec -it deployment/nats-box -n nats -- nats pub user-login $CLOUDEVENT_JSON --user=admin --password=my-password +KUBECONFIG= kubectl exec -it deployment/nats-box -n nats -- nats pub user-operation $CLOUDEVENT_JSON --user=admin --password=my-password ``` Verify the namespace has been deleted in response to the user logout CloudEvent: