2023-01-28 05:37:20 +08:00
|
|
|
# Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2021-09-01 23:11:43 +08:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: tailscale
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""] # "" indicates the core API group
|
|
|
|
resources: ["secrets"]
|
2021-10-13 05:24:07 +08:00
|
|
|
# Create can not be restricted to a resource name.
|
|
|
|
verbs: ["create"]
|
|
|
|
- apiGroups: [""] # "" indicates the core API group
|
2022-06-07 03:43:23 +08:00
|
|
|
resourceNames: ["{{TS_KUBE_SECRET}}"]
|
2021-10-13 05:24:07 +08:00
|
|
|
resources: ["secrets"]
|
2022-11-08 08:11:54 +08:00
|
|
|
verbs: ["get", "update", "patch"]
|