diff --git a/README.md b/README.md index 3fe75ae..b4aa14a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/k8s/manifests/monokle-policy-binding-crd.yaml b/k8s/manifests/monokle-policy-binding-crd.yaml index f950641..5d536f1 100644 --- a/k8s/manifests/monokle-policy-binding-crd.yaml +++ b/k8s/manifests/monokle-policy-binding-crd.yaml @@ -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