diff --git a/k8s/vizier/bootstrap/updater_role.yaml b/k8s/vizier/bootstrap/updater_role.yaml index 1905d3a6ab1..557cafc8d99 100644 --- a/k8s/vizier/bootstrap/updater_role.yaml +++ b/k8s/vizier/bootstrap/updater_role.yaml @@ -17,6 +17,7 @@ rules: - pods - services - persistentvolumes + - persistentvolumeclaims - serviceaccounts verbs: - create @@ -26,6 +27,15 @@ rules: - patch - update - watch +- apiGroups: + - "" + resources: + - events + - pods/log + verbs: + - get + - watch + - list - apiGroups: - apps resources: @@ -53,6 +63,42 @@ rules: - patch - update - watch +- apiGroups: + - coordination.k8s.io + resources: + - leases + resourceNames: + - cloud-conn-election + - metadata-election + verbs: + - get + - update +- apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - create +- apiGroups: + - px.dev + resources: + - viziers + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - px.dev + resources: + - viziers/status + verbs: + - get + - list + - watch - apiGroups: - rbac.authorization.k8s.io resources: @@ -79,3 +125,64 @@ subjects: - kind: ServiceAccount name: pl-updater-service-account namespace: pl +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: pl-updater-cluster-role +rules: +- apiGroups: + - rbac.authorization.k8s.io + resources: + - clusterroles + - clusterrolebindings + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - "" + resources: + - namespaces + verbs: + - get + resourceNames: + - kube-system +- apiGroups: + - "" + resources: + - nodes + - pods + - services + - endpoints + - namespaces + verbs: + - get + - watch + - list +- apiGroups: + - apps + resources: + - replicasets + - deployments + verbs: + - get + - watch + - list +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: pl-updater-cluster-binding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: pl-updater-cluster-role +subjects: +- kind: ServiceAccount + name: pl-updater-service-account + namespace: pl