From 6b62ce7aa41ded3abcd9cd3cc8805189d2f5f58e Mon Sep 17 00:00:00 2001 From: longjuan <769022681@qq.com> Date: Mon, 6 May 2024 18:34:54 +0800 Subject: [PATCH] Hide the permission of the verification interface (#147) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes https://github.com/halo-dev/plugin-s3/issues/146 ```release-note 在角色创建中隐藏配置校验接口的权限 ``` --- src/main/resources/extensions/s3os-role-template.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/extensions/s3os-role-template.yaml b/src/main/resources/extensions/s3os-role-template.yaml index 271f321..4a42103 100644 --- a/src/main/resources/extensions/s3os-role-template.yaml +++ b/src/main/resources/extensions/s3os-role-template.yaml @@ -46,9 +46,10 @@ metadata: name: role-template-s3os-policy-config-validation labels: halo.run/role-template: "true" + halo.run/hidden: "true" rbac.authorization.halo.run/aggregate-to-role-template-manage-configmaps: "true" rules: - apiGroups: ["s3os.halo.run"] resources: ["policies/validation"] resourceNames: ["s3"] - verbs: [ "create" ] \ No newline at end of file + verbs: [ "create" ]