-
Notifications
You must be signed in to change notification settings - Fork 715
Creation of SecurityPolicy with targetSelectors fails #3901
Copy link
Copy link
Closed
Description
Description:
Creation of SecurityPolicy with
targetSelectorsonly fails with theeither targetRef or targetRefs must be usedmessage
Repro steps:
Create SecurityPolicy below
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: SecurityPolicy
metadata:
labels:
eg/namespace: reference-apps
name: eg-fallback-oidc
namespace: reference-apps
spec:
oidc:
clientID: xxxxxxxxxx
clientSecret:
name: oauth2-secret
provider:
issuer: >-
https://login.microsoftonline.com/xxxxxxxxxx/v2.0
scopes:
- 'api://xxxxxxxxxx/oidc'
- offline_access
targetSelectors:
- group: gateway.networking.k8s.io
kind: HTTPRoute
matchLabels:
eg/namespace: reference-apps
Environment:
Version v1.1.0-rc.1, installed with the helm chart
dependencies:
- name: gateway-helm
version: v1.1.0-rc.1
repository: oci://docker.io/envoyproxy
It must be coming from the x-kubernetes-validation.
These CRDS are in the generated directory and I'm failing to find their source to fix the bug
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working