2023-10-30 18:18:09 +00:00
|
|
|
# Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: operator
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: tailscale-operator
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["events", "services", "services/status"]
|
2024-08-20 13:44:50 +00:00
|
|
|
verbs: ["create","delete","deletecollection","get","list","patch","update","watch"]
|
2023-10-30 18:18:09 +00:00
|
|
|
- apiGroups: ["networking.k8s.io"]
|
|
|
|
resources: ["ingresses", "ingresses/status"]
|
2024-08-20 13:44:50 +00:00
|
|
|
verbs: ["create","delete","deletecollection","get","list","patch","update","watch"]
|
2024-01-16 12:48:15 +00:00
|
|
|
- apiGroups: ["networking.k8s.io"]
|
|
|
|
resources: ["ingressclasses"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
2023-12-14 13:51:59 +00:00
|
|
|
- apiGroups: ["tailscale.com"]
|
2024-10-04 12:11:35 +00:00
|
|
|
resources: ["connectors", "connectors/status", "proxyclasses", "proxyclasses/status", "proxygroups", "proxygroups/status"]
|
2023-12-14 13:51:59 +00:00
|
|
|
verbs: ["get", "list", "watch", "update"]
|
2024-04-30 19:18:23 +00:00
|
|
|
- apiGroups: ["tailscale.com"]
|
|
|
|
resources: ["dnsconfigs", "dnsconfigs/status"]
|
|
|
|
verbs: ["get", "list", "watch", "update"]
|
2024-09-11 11:19:29 +00:00
|
|
|
- apiGroups: ["tailscale.com"]
|
|
|
|
resources: ["recorders", "recorders/status"]
|
|
|
|
verbs: ["get", "list", "watch", "update"]
|
2023-10-30 18:18:09 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: tailscale-operator
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: operator
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: tailscale-operator
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: operator
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
2024-04-30 19:18:23 +00:00
|
|
|
resources: ["secrets", "serviceaccounts", "configmaps"]
|
2024-08-20 13:44:50 +00:00
|
|
|
verbs: ["create","delete","deletecollection","get","list","patch","update","watch"]
|
2024-10-04 12:11:35 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["pods"]
|
|
|
|
verbs: ["get","list","watch"]
|
2023-10-30 18:18:09 +00:00
|
|
|
- apiGroups: ["apps"]
|
2024-04-30 19:18:23 +00:00
|
|
|
resources: ["statefulsets", "deployments"]
|
2024-08-20 13:44:50 +00:00
|
|
|
verbs: ["create","delete","deletecollection","get","list","patch","update","watch"]
|
2024-05-02 16:29:46 +00:00
|
|
|
- apiGroups: ["discovery.k8s.io"]
|
|
|
|
resources: ["endpointslices"]
|
2024-10-04 12:11:35 +00:00
|
|
|
verbs: ["get", "list", "watch", "create", "update", "deletecollection"]
|
2024-09-11 11:19:29 +00:00
|
|
|
- apiGroups: ["rbac.authorization.k8s.io"]
|
|
|
|
resources: ["roles", "rolebindings"]
|
|
|
|
verbs: ["get", "create", "patch", "update", "list", "watch"]
|
2023-10-30 18:18:09 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
name: operator
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: operator
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
roleRef:
|
|
|
|
kind: Role
|
|
|
|
name: operator
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|