Skip to content

Commit

Permalink
docs: fixes (#289)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Jan 3, 2025
1 parent 06b3edc commit 0a94c2f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions website/docs/policies/authorization-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:
status: google.rpc.Status{
code: 7
},
denied_response: envoy.service.auth.v3.DeniedHttpResponse{
http_response: envoy.service.auth.v3.DeniedHttpResponse{
status: envoy.type.v3.HttpStatus{
code: 403
}
Expand All @@ -102,7 +102,7 @@ spec:
status: google.rpc.Status{
code: 0
},
ok_response: envoy.service.auth.v3.OkHttpResponse{}
http_response: envoy.service.auth.v3.OkHttpResponse{}
}
```

Expand All @@ -114,7 +114,7 @@ This second policy showcases a more advanced example.
apiVersion: envoy.kyverno.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: demo-policy.example.com
name: demo
spec:
variables:
- name: force_authorized
Expand Down
2 changes: 1 addition & 1 deletion website/docs/policies/match-conditions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
failurePolicy: Fail
matchConditions:
- name: has-header
expression: has(object.attributes.request.http.headers["x-force-deny"])
expression: object.attributes.request.http.headers[?"x-force-deny"].hasValue()
deny:
- response: >
envoy.Denied(403).Response()
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/json-schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In VS code, simply add a comment on top of your YAML resources.
apiVersion: envoy.kyverno.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: demo-policy.example.com
name: demo
spec:
variables:
- name: force_authorized
Expand Down

0 comments on commit 0a94c2f

Please sign in to comment.