Skip to content

Commit c96be43

Browse files
committed
Update docs
1 parent f223549 commit c96be43

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# imagine 🧞
1+
# imagine
22

33
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/mikejoh)](https://artifacthub.io/packages/search?repo=mikejoh)
44

5-
`imagine` - The simplest [`ImagePolicyWebhook`](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#imagepolicywebhook) webhook example you'll ever find!
6-
7-
_Yes, you're correct, i'm studying for the CKS exam!_
5+
`imagine` - The simplest [`ImagePolicyWebhook`](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#imagepolicywebhook) webhook example you'll ever find! 🧞
86

97
## Development
108

@@ -85,3 +83,24 @@ spec:
8583
type: DirectoryOrCreate
8684
name: imagine
8785
```
86+
87+
Wait for a while to let the `kube-apiserver` start up again, check the status with e.g. `crictl`.
88+
89+
You can now run the simplest of tests:
90+
91+
```bash
92+
kubectl run --image nginx nginx-1
93+
```
94+
95+
vs
96+
97+
```bash
98+
kubectl run --image nope nginx-1
99+
```
100+
101+
You're now done! 🧞
102+
103+
#### Troubleshooting
104+
105+
* Check the logs of `imagine`, it logs incoming requests verbatim, and also the status and reason of the validating admission control request.
106+
* Check the logs of the `kube-apiserver`.

0 commit comments

Comments
 (0)