2022-06-06 20:43:23 +01:00
|
|
|
# Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved.
|
2021-10-12 22:24:07 +01:00
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
2021-09-01 16:11:43 +01:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: tailscale
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""] # "" indicates the core API group
|
|
|
|
resources: ["secrets"]
|
2021-10-12 22:24:07 +01:00
|
|
|
# Create can not be restricted to a resource name.
|
|
|
|
verbs: ["create"]
|
|
|
|
- apiGroups: [""] # "" indicates the core API group
|
2022-06-06 20:43:23 +01:00
|
|
|
resourceNames: ["{{TS_KUBE_SECRET}}"]
|
2021-10-12 22:24:07 +01:00
|
|
|
resources: ["secrets"]
|
2022-11-08 00:11:54 +00:00
|
|
|
verbs: ["get", "update", "patch"]
|