with helmchart 2.20.0 and default values for webhooks keda-admission-webhooks cannot patch events in events.k8s.io
Expected Behavior
no errors in logs like
cannot patch resource "events" in API group "events.k8s.io"
Actual Behavior
error log example
E0604 09:49:24.758725 1 event_broadcaster.go:270] "Server rejected event (will not retry!)" err="events.events.k8s.io \"api-server.18b5d74a7f55e3f3\" is forbidden: User \"system:serviceaccount:keda-operator:keda-webhook\" cannot patch resource \"events\" in API group \"events.k8s.io\" in the namespace \"sma-batch\"" event="&Event{ObjectMeta:{api-server.18b5d74a7f55e3f3 sma-batch 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},EventTime:2026-06-04 09:39:02.658782111 +0000 UTC m=+2655.739489701,Series:&EventSeries{Count:2,LastObservedTime:2026-06-04 09:39:02.659015976 +0000 UTC m=+2655.739723566,},ReportingController:keda-admission,ReportingInstance:keda-admission-keda-admission-webhooks-5447ddcbb6-xqh9s,Action:KEDAScalerInfo,Reason:KEDAScalerInfo,Regarding:{ScaledObject sma-batch api-server 223b7914-1545-44b0-8c45-a80619991cdc keda.sh/v1alpha1 6397411400 },Related:nil,Note:PollingInterval is configured but is not relevant. PollingInterval is only relevant when minReplicaCount = 0 or idleReplicaCount = 0 or useCachedMetrics is enabled,Type:Normal,DeprecatedSource:{ },DeprecatedFirstTimestamp:0001-01-01 00:00:00 +0000 UTC,DeprecatedLastTimestamp:0001-01-01 00:00:00 +0000 UTC,DeprecatedCount:0,}"
Steps to Reproduce the Problem
- deploy keda with chart 2.20.0 and default values
- create scaledobject with minReplicaCount > 0 and pollingInterval. e.g.
minReplicaCount: 2
pollingInterval: 30
- check logs of keda-admission-webhooks pod
Specifications
with helmchart 2.20.0 and default values for webhooks keda-admission-webhooks cannot patch events in events.k8s.io
Expected Behavior
no errors in logs like
cannot patch resource "events" in API group "events.k8s.io"Actual Behavior
error log example
E0604 09:49:24.758725 1 event_broadcaster.go:270] "Server rejected event (will not retry!)" err="events.events.k8s.io \"api-server.18b5d74a7f55e3f3\" is forbidden: User \"system:serviceaccount:keda-operator:keda-webhook\" cannot patch resource \"events\" in API group \"events.k8s.io\" in the namespace \"sma-batch\"" event="&Event{ObjectMeta:{api-server.18b5d74a7f55e3f3 sma-batch 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},EventTime:2026-06-04 09:39:02.658782111 +0000 UTC m=+2655.739489701,Series:&EventSeries{Count:2,LastObservedTime:2026-06-04 09:39:02.659015976 +0000 UTC m=+2655.739723566,},ReportingController:keda-admission,ReportingInstance:keda-admission-keda-admission-webhooks-5447ddcbb6-xqh9s,Action:KEDAScalerInfo,Reason:KEDAScalerInfo,Regarding:{ScaledObject sma-batch api-server 223b7914-1545-44b0-8c45-a80619991cdc keda.sh/v1alpha1 6397411400 },Related:nil,Note:PollingInterval is configured but is not relevant. PollingInterval is only relevant when minReplicaCount = 0 or idleReplicaCount = 0 or useCachedMetrics is enabled,Type:Normal,DeprecatedSource:{ },DeprecatedFirstTimestamp:0001-01-01 00:00:00 +0000 UTC,DeprecatedLastTimestamp:0001-01-01 00:00:00 +0000 UTC,DeprecatedCount:0,}"Steps to Reproduce the Problem
Specifications