2022-06-06 19:43:23 +00:00
|
|
|
# Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved.
|
2021-10-12 21:24:07 +00:00
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
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"]
|
|
|
|
verbs: ["get", "update"]
|