Skip to content

Commit d5c38e9

Browse files
authored
Merge pull request #731 from maxaudron/feature/allow-own-verb
add "own" to allowed list of verbs for policy rules
2 parents 4dce014 + 0fec3d2 commit d5c38e9

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/resources/global_role.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The following attributes are exported:
5151
* `non_resource_urls` - (Optional) Policy rule non resource urls (list)
5252
* `resource_names` - (Optional) Policy rule resource names (list)
5353
* `resources` - (Optional) Policy rule resources (list)
54-
* `verbs` - (Optional) Policy rule verbs. `create`, `delete`, `deletecollection`, `get`, `list`, `patch`, `update`, `view`, `watch` and `*` values are supported (list)
54+
* `verbs` - (Optional) Policy rule verbs. `create`, `delete`, `deletecollection`, `get`, `list`, `patch`, `update`, `view`, `watch`, `own` and `*` values are supported (list)
5555

5656
## Timeouts
5757

docs/resources/role_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The following attributes are exported:
7474
* `non_resource_urls` - (Optional) Policy rule non resource urls (list)
7575
* `resource_names` - (Optional) Policy rule resource names (list)
7676
* `resources` - (Optional) Policy rule resources (list)
77-
* `verbs` - (Optional) Policy rule verbs. `create`, `delete`, `deletecollection`, `get`, `list`, `patch`, `update`, `view`, `watch` and `*` values are supported (list)
77+
* `verbs` - (Optional) Policy rule verbs. `create`, `delete`, `deletecollection`, `get`, `list`, `patch`, `update`, `view`, `watch`, `own` and `*` values are supported (list)
7878

7979
## Timeouts
8080

rancher2/schema_policy_rule.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const (
1616
policyRuleVerbUpdate = "update"
1717
policyRuleVerbView = "view"
1818
policyRuleVerbWatch = "watch"
19+
policyRuleVerbOwn = "own"
1920
)
2021

2122
var (
@@ -30,6 +31,7 @@ var (
3031
policyRuleVerbUpdate,
3132
policyRuleVerbView,
3233
policyRuleVerbWatch,
34+
policyRuleVerbOwn,
3335
}
3436
)
3537

0 commit comments

Comments
 (0)