From 4336cd6ad945e8ae9d789b549a4c08fb55549d40 Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Tue, 10 Sep 2024 10:06:47 +0200 Subject: [PATCH] feat: add manage-namespaces and updatepsa to verb list (#1392) Signed-off-by: Alessio Greggi --- docs/resources/global_role.md | 2 +- docs/resources/role_template.md | 2 +- rancher2/schema_policy_rule.go | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/resources/global_role.md b/docs/resources/global_role.md index 47df35b1..c64494d9 100644 --- a/docs/resources/global_role.md +++ b/docs/resources/global_role.md @@ -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 diff --git a/docs/resources/role_template.md b/docs/resources/role_template.md index 7daff677..f62ac83c 100644 --- a/docs/resources/role_template.md +++ b/docs/resources/role_template.md @@ -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 diff --git a/rancher2/schema_policy_rule.go b/rancher2/schema_policy_rule.go index 2f5a3ae3..ba12548f 100644 --- a/rancher2/schema_policy_rule.go +++ b/rancher2/schema_policy_rule.go @@ -21,6 +21,8 @@ const ( policyRuleVerbBind = "bind" policyRuleVerbEscalate = "escalate" policyRuleVerbImpersonate = "impersonate" + policyRuleVerbManageNamespaces = "manage-namespaces" + policyRuleVerbUpdatePSA = "updatepsa" ) var ( @@ -40,6 +42,8 @@ var ( policyRuleVerbBind, policyRuleVerbEscalate, policyRuleVerbImpersonate, + policyRuleVerbManageNamespaces, + policyRuleVerbUpdatePSA, } )