You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST at: https://localhost/apis/keda.sh/v1alpha1/namespaces/destination-namespace/scaledobjects. Message: ScaledObject.keda.sh "my-scaled-object" is invalid: spec.triggers[0].metadata.desiredReplicas: Invalid value: "integer": spec.triggers[0].metadata.desiredReplicas in body must be of type string: "integer". Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.triggers[0].metadata.desiredReplicas, message=Invalid value: "integer": spec.triggers[0].metadata.desiredReplicas in body must be of type string: "integer", reason=FieldValueTypeInvalid, additionalProperties={})], group=keda.sh, kind=ScaledObject, name=my-scaled-object, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=ScaledObject.keda.sh "my-scaled-object" is invalid: spec.triggers[0].metadata.desiredReplicas: Invalid value: "integer": spec.triggers[0].metadata.desiredReplicas in body must be of type string: "integer", metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={})
at io.fabric8.kubernetes.client.KubernetesClientException.copyAsCause(KubernetesClientException.java:238)
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.waitForResult(OperationSupport.java:518)
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.handleResponse(OperationSupport.java:535)
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.handleCreate(OperationSupport.java:340)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.handleCreate(BaseOperation.java:703)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.handleCreate(BaseOperation.java:92)
at io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation.create(CreateOnlyResourceOperation.java:42)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.create(BaseOperation.java:1108)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.create(BaseOperation.java:92)
at io.fabric8.kubernetes.client.extension.ResourceAdapter.create(ResourceAdapter.java:114)
The issue is due to the desiredReplicas which must be of type string and is replaced with integer.
POST at: https://localhost/apis/keda.sh/v1alpha1/namespaces/destination-namespace/scaledobjects. Message: ScaledObject.keda.sh "my-scaled-object" is invalid: spec.triggers[0].metadata.desiredReplicas: Invalid value: "integer": spec.triggers[0].metadata.desiredReplicas in body must be of type string: "integer". Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.triggers[0].metadata.desiredReplicas, message=Invalid value: "integer": spec.triggers[0].metadata.desiredReplicas in body must be of type string: "integer", reason=FieldValueTypeInvalid, additionalProperties={})], group=keda.sh, kind=ScaledObject, name=my-scaled-object, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=ScaledObject.keda.sh "my-scaled-object" is invalid: spec.triggers[0].metadata.desiredReplicas: Invalid value: "integer": spec.triggers[0].metadata.desiredReplicas in body must be of type string: "integer", metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={})
at io.fabric8.kubernetes.client.KubernetesClientException.copyAsCause(KubernetesClientException.java:238)
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.waitForResult(OperationSupport.java:518)
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.handleResponse(OperationSupport.java:535)
at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.handleCreate(OperationSupport.java:340)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.handleCreate(BaseOperation.java:703)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.handleCreate(BaseOperation.java:92)
at io.fabric8.kubernetes.client.dsl.internal.CreateOnlyResourceOperation.create(CreateOnlyResourceOperation.java:42)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.create(BaseOperation.java:1108)
at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.create(BaseOperation.java:92)
at io.fabric8.kubernetes.client.extension.ResourceAdapter.create(ResourceAdapter.java:114)
Describe the bug
I have a simple script that Fetch a keda ScaledObject Resources in a namepace and copy them into the destination namespace:
When doing the create I get:
The issue is due to the desiredReplicas which must be of type string and is replaced with integer.
Fabric8 Kubernetes Client version
6.9.2
Steps to reproduce
Expected behavior
Type must not be changed
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.25.3@latest
Environment
Linux
Fabric8 Kubernetes Client Logs
Additional context
I see this issue which may be related: FasterXML/jackson-databind#796
The text was updated successfully, but these errors were encountered: