From 5e88fe1adf56e760a880740b3b6528b32e3a8b03 Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Mon, 2 Sep 2024 16:43:07 +0200 Subject: [PATCH 1/2] feat: add manage-namespaces and updatepsa to verb list Signed-off-by: Alessio Greggi --- docs/resources/role_template.md | 2 +- rancher2/schema_policy_rule.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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, } ) From 4600412cf0b5434974953e08d07c325da554aa51 Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Mon, 9 Sep 2024 13:22:59 +0200 Subject: [PATCH 2/2] add missing doc Signed-off-by: Alessio Greggi --- docs/resources/global_role.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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