Skip to content

Commit

Permalink
Merge pull request #1277 from thomasgouveia/fix-1276-kube-events-watc…
Browse files Browse the repository at this point in the history
…h-rbac

Allow fluent-operator to watch Kubernetes events
  • Loading branch information
benjaminhuo authored Aug 12, 2024
2 parents 9b2912f + 9220eb5 commit e037ef8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/fluent-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: A Helm chart for Kubernetes
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.0.0
version: 3.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ rules:
- events
verbs:
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
1 change: 1 addition & 0 deletions controllers/fluentbit_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type FluentBitReconciler struct {
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=create;list;get;watch;patch
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=create;list;get;watch;patch
// +kubebuilder:rbac:groups=core,resources=pods,verbs=get
// +kubebuilder:rbac:groups=core,resources=events,verbs=list;watch

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down
3 changes: 2 additions & 1 deletion manifests/setup/fluent-operator-clusterRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ rules:
resources:
- events
verbs:
- list
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
1 change: 1 addition & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39202,6 +39202,7 @@ rules:
- events
verbs:
- list
- watch
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit e037ef8

Please sign in to comment.