Skip to content

Commit

Permalink
chore: update operator manager permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafatio committed Feb 6, 2024
1 parent 011c4b1 commit a02cc37
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
22 changes: 13 additions & 9 deletions .kubernetes/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5503,27 +5503,31 @@ rules:
resources:
- clusters
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- cluster.x-k8s.io
resources:
- clusters/finalizers
- clusters/status
verbs:
- update
- get
- apiGroups:
- cluster.x-k8s.io
resources:
- clusters/status
- machinepools
verbs:
- delete
- get
- list
- watch
- apiGroups:
- cluster.x-k8s.io
resources:
- machinepools/status
verbs:
- get
- patch
- update
- apiGroups:
- controlplane.cluster.x-k8s.io
resources:
Expand Down Expand Up @@ -5730,7 +5734,7 @@ spec:
optional: true
- name: AWS_REGION
value: us-east-1
image: tfgco/kubernetes-kops-operator:v0.9.0-alpha
image: tfgco/kubernetes-kops-operator:v0.10.0-alpha
livenessProbe:
httpGet:
path: /healthz
Expand Down
20 changes: 12 additions & 8 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,31 @@ rules:
resources:
- clusters
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- cluster.x-k8s.io
resources:
- clusters/finalizers
- clusters/status
verbs:
- update
- get
- apiGroups:
- cluster.x-k8s.io
resources:
- clusters/status
- machinepools
verbs:
- delete
- get
- list
- watch
- apiGroups:
- cluster.x-k8s.io
resources:
- machinepools/status
verbs:
- get
- patch
- update
- apiGroups:
- controlplane.cluster.x-k8s.io
resources:
Expand Down
7 changes: 4 additions & 3 deletions controllers/controlplane/kopscontrolplane_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,10 @@ func (r *KopsControlPlaneReconciliation) reconcileClusterAddons(ctx context.Cont
//+kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=kopsmachinepools,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=kopsmachinepools/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=kopsmachinepools/finalizers,verbs=update
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters/finalizers,verbs=update
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=machinepools,verbs=get;list;watch;delete
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=machinepools/status,verbs=get
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters,verbs=get;list;watch;delete
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters/status,verbs=get
//+kubebuilder:rbac:groups="",resources=events,verbs=get;list;watch;create;patch
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update

Expand Down

0 comments on commit a02cc37

Please sign in to comment.