Skip to content

Commit bb72b70

Browse files
authored
Merge pull request #831 from zerotens/master
Policy validator add specialized verbs
2 parents 3ddc9cf + 349f122 commit bb72b70

3 files changed

Lines changed: 10 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`, `own` and `*` values are supported (list)
54+
* `verbs` - (Optional) Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `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`, `own` and `*` values are supported (list)
77+
* `verbs` - (Optional) Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list)
7878

7979
## Timeouts
8080

rancher2/schema_policy_rule.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const (
1717
policyRuleVerbView = "view"
1818
policyRuleVerbWatch = "watch"
1919
policyRuleVerbOwn = "own"
20+
policyRuleVerbUse = "use"
21+
policyRuleVerbBind = "bind"
22+
policyRuleVerbEscalate = "escalate"
23+
policyRuleVerbImpersonate = "impersonate"
2024
)
2125

2226
var (
@@ -32,6 +36,10 @@ var (
3236
policyRuleVerbView,
3337
policyRuleVerbWatch,
3438
policyRuleVerbOwn,
39+
policyRuleVerbUse,
40+
policyRuleVerbBind,
41+
policyRuleVerbEscalate,
42+
policyRuleVerbImpersonate,
3543
}
3644
)
3745

0 commit comments

Comments
 (0)