Skip to content

Commit

Permalink
add comments
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 8, 2024
1 parent b96bdc0 commit 3acc783
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api/v1alpha1/authorization_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ package v1alpha1
// Authorization defines the authorization configuration.
type Authorization struct {
// Rules contains all the authorization rules.
// Rules are evaluated in order, the first matching rule will be applied.
// Rules are evaluated in order, the first matching rule will be applied,
// and the rest will be skipped.
//
// +kubebuilder:validation:MinItems=1
Rules []Rule `json:"rules,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ spec:
rules:
description: |-
Rules contains all the authorization rules.
Rules are evaluated in order, the first matching rule will be applied.
Rules are evaluated in order, the first matching rule will be applied,
and the rest will be skipped.
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_ | true | Rules contains all the authorization rules.<br />Rules are evaluated in order, the first matching rule will be applied. |
| `rules` | _[Rule](#rule) array_ | true | Rules contains all the authorization rules.<br />Rules are evaluated in order, the first matching rule will be applied,<br />and the rest will be skipped. |


#### BackOffPolicy
Expand Down

0 comments on commit 3acc783

Please sign in to comment.