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