Skip to content

Commit

Permalink
feat: add manage-namespaces and updatepsa to verb list (#1392)
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <[email protected]>
  • Loading branch information
alegrey91 authored Sep 10, 2024
1 parent 1792a32 commit 4336cd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/global_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The following attributes are exported:
* `non_resource_urls` - (Optional) Policy rule non resource urls (list)
* `resource_names` - (Optional) Policy rule resource names (list)
* `resources` - (Optional) Policy rule resources (list)
* `verbs` - (Optional) Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list)
* `verbs` - (Optional) Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `manage-namespaces`, `patch`, `update`, `updatepsa`, `use`, `view`, `watch`, `own` and `*` values are supported (list)

## Timeouts

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/role_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The following attributes are exported:
* `non_resource_urls` - (Optional) Policy rule non resource urls (list)
* `resource_names` - (Optional) Policy rule resource names (list)
* `resources` - (Optional) Policy rule resources (list)
* `verbs` - (Optional) Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list)
* `verbs` - (Optional) Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `manage-namespaces`, `patch`, `update`, `updatepsa`, `use`, `view`, `watch`, `own` and `*` values are supported (list)

## Timeouts

Expand Down
4 changes: 4 additions & 0 deletions rancher2/schema_policy_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const (
policyRuleVerbBind = "bind"
policyRuleVerbEscalate = "escalate"
policyRuleVerbImpersonate = "impersonate"
policyRuleVerbManageNamespaces = "manage-namespaces"
policyRuleVerbUpdatePSA = "updatepsa"
)

var (
Expand All @@ -40,6 +42,8 @@ var (
policyRuleVerbBind,
policyRuleVerbEscalate,
policyRuleVerbImpersonate,
policyRuleVerbManageNamespaces,
policyRuleVerbUpdatePSA,
}
)

Expand Down

0 comments on commit 4336cd6

Please sign in to comment.