Skip to content

Commit

Permalink
docs/content: fix kubernetes admission controller tutorial
Browse files Browse the repository at this point in the history
fixes: #2467

Signed-off-by: Gaga Pan <gaga5lala1013@gmail.com>
  • Loading branch information
gaga5lala authored and patrick-east committed Jun 26, 2020
1 parent 93decfd commit 0825b9a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/content/kubernetes-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,21 @@ data:
"response": response,
}
default response = {"allowed": true}
default uid = ""
uid = input.request.uid
response = {
"allowed": false,
"uid": uid,
"status": {
"reason": reason,
},
} {
reason = concat(", ", admission.deny)
reason != ""
}
else = {"allowed": true, "uid": uid}
```

```bash
Expand Down

0 comments on commit 0825b9a

Please sign in to comment.