error: admission webhook "vscaledobject.kb.io" denied the request #6717
Answered
by
rickbrouwer
davidshen84
asked this question in
Q&A / Need Help
|
Hi, I have a ScaledObject which worked in v2.16.1. apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
annotations:
scaledobject.keda.sh/transfer-hpa-ownership: "true"
validations.keda.sh/hpa-ownership: "true"
finalizers:
- finalizer.keda.sh
generation: 2
labels:
app.kubernetes.io/managed-by: Helm
scaledobject.keda.sh/name: test
name: test
namespace: test
spec:
cooldownPeriod: 300
fallback:
behavior: static
failureThreshold: 3
replicas: 1
idleReplicaCount: 0
maxReplicaCount: 1
minReplicaCount: 1
pollingInterval: 480
scaleTargetRef:
name: test
triggers:
- authenticationRef:
name: cred
metadata:
subscriptionName: test
value: "10"
valueIfNull: "0"
type: gcp-pubsubBut after upgrading to keda v2.17, I got an Admission Webhook error like the following: I checked the Fallback section between v2.16 and v2.17, and they look the same, except the behavior part. I also check the gpc-pub-sub trigger, https://keda.sh/docs/2.17/scalers/gcp-pub-sub/, and I could not find an AverageValue related metric. |
Answered by
rickbrouwer
Apr 18, 2025
Replies: 1 comment
|
Hello! This issue is known and reported in #6696. |
0 replies
Answer selected by
davidshen84
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
This issue is known and reported in #6696.
There is also a fix already implemented which will come in v2.17.1 (#6702).
The workaround for the time being is to add
metricType: AverageValue, see also: #6696 (comment)