Skip to content

unknown field "spec.targetRef.namespace" #100

@leathersole

Description

@leathersole
$ kuadrantctl version
kuadrantctl v0.3.0 (eec318b2e11e7ea5add5e550ff872bde64555d8f)

$ kuadrantctl generate kuadrant ratelimitpolicy --oas https://raw.githubusercontent.com/Kuadrant/kuadrantctl/refs/heads/main/examples/oas3/petstore-with-oidc-kuadrant-extensions.yaml

This command generates following yaml but spec.targetRef.namespace is invalid field and causes error.

apiVersion: kuadrant.io/v1beta2
kind: RateLimitPolicy
metadata:
  creationTimestamp: null
  name: petstore
  namespace: petstore
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: petstore
    namespace: petstore
status: {}
Error from server (BadRequest): error when creating "STDIN": RateLimitPolicy in version "v1beta2" cannot be handled as a RateLimitPolicy: strict decoding error: unknown field "spec.targetRef.namespace"

Same issue occurs when I generate AuthPolicy

$ kuadrantctl generate kuadrant authpolicy --oas https://raw.githubusercontent.com/Kuadrant/kuadrantctl/refs/heads/main/examples/oas3/petstore-with-oidc-kuadrant-extensions.yaml |kubectl apply -f -
Error from server (BadRequest): error when creating "STDIN": AuthPolicy in version "v1beta2" cannot be handled as a AuthPolicy: strict decoding error: unknown field "spec.targetRef.namespace"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions