Skip to content

Commit

Permalink
fix(operator): Fix RBAC permission for poddisruptionbudgets (#15107)
Browse files Browse the repository at this point in the history
  • Loading branch information
xperimental authored Nov 27, 2024
1 parent 38fcef3 commit f00d07a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ metadata:
categories: OpenShift Optional, Logging & Tracing
certified: "false"
containerImage: docker.io/grafana/loki-operator:0.7.1
createdAt: "2024-11-08T17:18:30Z"
createdAt: "2024-11-25T18:28:02Z"
description: The Community Loki Operator provides Kubernetes native deployment
and management of Loki and related logging components.
features.operators.openshift.io/disconnected: "true"
Expand Down Expand Up @@ -1771,7 +1771,7 @@ spec:
- update
- watch
- apiGroups:
- policy/v1
- policy
resources:
- poddisruptionbudgets
verbs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ metadata:
categories: OpenShift Optional, Logging & Tracing
certified: "false"
containerImage: docker.io/grafana/loki-operator:0.7.1
createdAt: "2024-11-08T17:18:28Z"
createdAt: "2024-11-25T18:27:59Z"
description: The Community Loki Operator provides Kubernetes native deployment
and management of Loki and related logging components.
operators.operatorframework.io/builder: operator-sdk-unknown
Expand Down Expand Up @@ -1751,7 +1751,7 @@ spec:
- update
- watch
- apiGroups:
- policy/v1
- policy
resources:
- poddisruptionbudgets
verbs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ metadata:
categories: OpenShift Optional, Logging & Tracing
certified: "false"
containerImage: quay.io/openshift-logging/loki-operator:0.1.0
createdAt: "2024-11-08T17:18:32Z"
createdAt: "2024-11-25T18:28:06Z"
description: |
The Loki Operator for OCP provides a means for configuring and managing a Loki stack for cluster logging.
## Prerequisites and Requirements
Expand Down Expand Up @@ -1756,7 +1756,7 @@ spec:
- update
- watch
- apiGroups:
- policy/v1
- policy
resources:
- poddisruptionbudgets
verbs:
Expand Down
2 changes: 1 addition & 1 deletion operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ rules:
- update
- watch
- apiGroups:
- policy/v1
- policy
resources:
- poddisruptionbudgets
verbs:
Expand Down
2 changes: 1 addition & 1 deletion operator/internal/controller/loki/lokistack_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ type LokiStackReconciler struct {
// +kubebuilder:rbac:urls=/api/v2/alerts,verbs=create
// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;create;update
// +kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=get;list;watch;create;update
// +kubebuilder:rbac:groups=policy/v1,resources=poddisruptionbudgets,verbs=get;list;watch;create;update
// +kubebuilder:rbac:groups=policy,resources=poddisruptionbudgets,verbs=get;list;watch;create;update
// +kubebuilder:rbac:groups=config.openshift.io,resources=dnses;apiservers;proxies,verbs=get;list;watch
// +kubebuilder:rbac:groups=route.openshift.io,resources=routes,verbs=get;list;watch;create;update;delete
// +kubebuilder:rbac:groups=cloudcredential.openshift.io,resources=credentialsrequests,verbs=get;list;watch;create;update;delete
Expand Down

0 comments on commit f00d07a

Please sign in to comment.