Skip to content

Commit

Permalink
Merge pull request #476 from gianlucam76/typo
Browse files Browse the repository at this point in the history
Fix typo in the nats example
  • Loading branch information
gianlucam76 authored Feb 6, 2025
2 parents 74c0a97 + 8bcb898 commit af66fc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/events/nats.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -305,7 +305,7 @@ EOF
```

```
KUBECONFIG=<production cluster kubeconfig> kubectl exec -it deployment/nats-box -n nats -- nats pub user-login $CLOUDEVENT_JSON --user=admin --password=my-password
KUBECONFIG=<production cluster kubeconfig> kubectl exec -it deployment/nats-box -n nats -- nats pub user-operation $CLOUDEVENT_JSON --user=admin --password=my-password
```
Verify namespace is created:
Expand Down Expand Up @@ -341,7 +341,7 @@ EOF
```
```
KUBECONFIG=<production cluster kubeconfig> kubectl exec -it deployment/nats-box -n nats -- nats pub user-login $CLOUDEVENT_JSON --user=admin --password=my-password
KUBECONFIG=<production cluster 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:
Expand Down

0 comments on commit af66fc7

Please sign in to comment.