Skip to content

Commit

Permalink
fix: fix policy binding CRD schema
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Sep 29, 2023
1 parent e6ce712 commit 13a9515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ First you need to create policy resource, for example:

```bash
kubectl -n webhook-demo apply -f examples/policy-sample.yaml
kubectl -n webhook-demo apply -f examples/policy-binding-sample.yaml
```

> Admission controller will still work without policy resource but then it will be like running validation with all plugins disabled.
Expand Down
6 changes: 4 additions & 2 deletions k8s/manifests/monokle-policy-binding-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ spec:
policyName:
type: string
validationActions:
type: string
enum: [Warn]
type: array
items:
type: string
enum: [Warn]
scope: Cluster
names:
plural: policybindings
Expand Down

0 comments on commit 13a9515

Please sign in to comment.