Skip to content

Commit

Permalink
Align rbac with upstream
Browse files Browse the repository at this point in the history
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
  • Loading branch information
mikkeloscar committed Mar 26, 2024
1 parent a86efa6 commit 00fdf4d
Showing 1 changed file with 43 additions and 19 deletions.
62 changes: 43 additions & 19 deletions cluster/manifests/01-vertical-pod-autoscaler/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ rules:
- list
- watch
- create
- update
- patch
- apiGroups:
- "poc.autoscaling.k8s.io"
resources:
Expand All @@ -52,7 +50,6 @@ rules:
- get
- list
- watch
- patch
- apiGroups:
- "autoscaling.k8s.io"
resources:
Expand All @@ -61,6 +58,18 @@ rules:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:vpa-status-actor
rules:
- apiGroups:
- "autoscaling.k8s.io"
resources:
- verticalpodautoscalers/status
verbs:
- get
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -110,17 +119,12 @@ metadata:
component: vpa
rules:
- apiGroups:
- "apps"
- "extensions"
resources:
- replicasets
verbs:
- get
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -165,6 +169,19 @@ subjects:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:vpa-status-actor
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:vpa-status-actor
subjects:
- kind: ServiceAccount
name: vpa-recommender
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:vpa-checkpoint-actor
labels:
Expand All @@ -187,6 +204,13 @@ metadata:
application: kubernetes
component: vpa
rules:
- apiGroups:
- '*'
resources:
- '*/scale'
verbs:
- get
- watch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -241,7 +265,7 @@ subjects:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:vpa-evictionter-binding
name: system:vpa-evictioner-binding
labels:
application: kubernetes
component: vpa
Expand All @@ -257,29 +281,29 @@ subjects:
apiVersion: v1
kind: ServiceAccount
metadata:
name: vpa-recommender
name: vpa-admission-controller
namespace: kube-system
labels:
application: kubernetes
component: vpa-recommender
component: vpa-admission-controller
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: vpa-updater
name: vpa-recommender
namespace: kube-system
labels:
application: kubernetes
component: vpa-updater
component: vpa-recommender
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: vpa-admission-controller
name: vpa-updater
namespace: kube-system
labels:
application: kubernetes
component: vpa-admission-controller
component: vpa-updater
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -375,6 +399,6 @@ roleRef:
kind: ClusterRole
name: system:vpa-status-reader
subjects:
- kind: ServiceAccount
name: vpa-updater
namespace: kube-system
- kind: ServiceAccount
name: vpa-updater
namespace: kube-system

0 comments on commit 00fdf4d

Please sign in to comment.