Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing committed May 10, 2024
1 parent 882a52c commit 387951b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions api/v1alpha1/authorization_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ type Authorization struct {
// and the rest will be skipped.
//
// For example, if there are two rules: the first rule allows the request
// and the second rule denies it,
//when a request matches both rules, it will be allowed.
// and the second rule denies it, when a request matches both rules, it will be allowed.
//
// +optional
Rules []Rule `json:"rules,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ spec:
For example, if there are two rules: the first rule allows the request
and the second rule denies it,
when a request matches both rules, it will be allowed.
and the second rule denies it, when a request matches both rules, it will be allowed.
items:
description: Rule defines the single authorization rule.
properties:
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ _Appears in:_

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `rules` | _[Rule](#rule) array_ | false | Rules defines a list of authorization rules.<br />These rules are evaluated in order, the first matching rule will be applied,<br />and the rest will be skipped.<br /><br />For example, if there are two rules: the first rule allows the request<br />and the second rule denies it,<br />when a request matches both rules, it will be allowed. |
| `rules` | _[Rule](#rule) array_ | false | Rules defines a list of authorization rules.<br />These rules are evaluated in order, the first matching rule will be applied,<br />and the rest will be skipped.<br /><br />For example, if there are two rules: the first rule allows the request<br />and the second rule denies it, when a request matches both rules, it will be allowed. |
| `defaultAction` | _[RuleActionType](#ruleactiontype)_ | false | DefaultAction defines the default action to be taken if no rules match.<br />If not specified, the default action is Deny. |


Expand Down

0 comments on commit 387951b

Please sign in to comment.