Skip to content

Commit

Permalink
doc: enhance the example case
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Jan 28, 2025
1 parent 7ca5acd commit af09e68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/03-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: ex-device-plugin
namespace: ex-device-plugin
labels:
app: ex-device-plugin
spec:
Expand Down
14 changes: 14 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
### Example
0. Create namespace `oc new-project ex-device-plugin`
1. Install `kustomize build examples/ | oc apply -f -`
2. Uninstall `kustomize build examples/ | oc delete -f -`

To remove stuck namespace:

```
oc get namespace "ex-device-plugin" -o json \
| tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
| oc replace --raw /api/v1/namespaces/ex-device-plugin/finalize -f -
```

### Storage Class Tests
You will need to change `storageclass-tbd` in 03-pvc.yaml to work with your storageclass.

0 comments on commit af09e68

Please sign in to comment.