diff --git a/charts/fluent-operator/Chart.yaml b/charts/fluent-operator/Chart.yaml index 99010a05f..5c70c0e85 100644 --- a/charts/fluent-operator/Chart.yaml +++ b/charts/fluent-operator/Chart.yaml @@ -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 diff --git a/charts/fluent-operator/templates/fluent-operator-clusterRole.yaml b/charts/fluent-operator/templates/fluent-operator-clusterRole.yaml index efb4713fe..c3e2f0526 100644 --- a/charts/fluent-operator/templates/fluent-operator-clusterRole.yaml +++ b/charts/fluent-operator/templates/fluent-operator-clusterRole.yaml @@ -31,6 +31,7 @@ rules: - events verbs: - list + - watch - apiGroups: - "" resources: diff --git a/controllers/fluentbit_controller.go b/controllers/fluentbit_controller.go index 6bd214764..91c4968df 100644 --- a/controllers/fluentbit_controller.go +++ b/controllers/fluentbit_controller.go @@ -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. diff --git a/manifests/setup/fluent-operator-clusterRole.yaml b/manifests/setup/fluent-operator-clusterRole.yaml index fe69de05c..c3e2f0526 100644 --- a/manifests/setup/fluent-operator-clusterRole.yaml +++ b/manifests/setup/fluent-operator-clusterRole.yaml @@ -30,7 +30,8 @@ rules: resources: - events verbs: - - list + - list + - watch - apiGroups: - "" resources: diff --git a/manifests/setup/setup.yaml b/manifests/setup/setup.yaml index ba19c84a2..4004ddc83 100644 --- a/manifests/setup/setup.yaml +++ b/manifests/setup/setup.yaml @@ -39196,6 +39196,7 @@ rules: - events verbs: - list + - watch - apiGroups: - "" resources: