generated from halo-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add role template for view umami share page (#18)
添加访问 Umami 共享页面的角色模板。 /kind feature ```release-note 添加访问 Umami 共享页面的角色模板。 ```
- Loading branch information
Showing
4 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1alpha1 | ||
kind: "Role" | ||
metadata: | ||
name: role-template-view-umami | ||
labels: | ||
halo.run/role-template: "true" | ||
annotations: | ||
rbac.authorization.halo.run/module: "Umami" | ||
rbac.authorization.halo.run/display-name: "允许访问 Umami 页面" | ||
rbac.authorization.halo.run/ui-permissions: | | ||
["plugin:umami:share-page:view"] | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
resourceNames: ["plugin-umami-configMap"] | ||
verbs: ["get"] |