mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-11 10:44:41 +00:00
ebeb5da202
This is a follow-up to #14112 where our internal kube client was updated to allow it to emit Events - this updates our sample kube manifests and tsrecorder manifest templates so they can benefit from this functionality. Updates tailscale/tailscale#14080 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
19 lines
582 B
YAML
19 lines
582 B
YAML
# Copyright (c) Tailscale Inc & AUTHORS
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: tailscale
|
|
rules:
|
|
- apiGroups: [""] # "" indicates the core API group
|
|
resources: ["secrets"]
|
|
# Create can not be restricted to a resource name.
|
|
verbs: ["create"]
|
|
- apiGroups: [""] # "" indicates the core API group
|
|
resourceNames: ["{{TS_KUBE_SECRET}}"]
|
|
resources: ["secrets"]
|
|
verbs: ["get", "update", "patch"]
|
|
- apiGroups: [""] # "" indicates the core API group
|
|
resources: ["events"]
|
|
verbs: ["get", "create", "patch"]
|