Skip to content

Commit

Permalink
yamllint
Browse files Browse the repository at this point in the history
Signed-off-by: zirain <zirain2009@gmail.com>
  • Loading branch information
zirain committed May 24, 2024
1 parent 3351415 commit 7e2f577
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ securityPolicies:
extAuth:
http:
backendRefs:
- name: http-backend
namespace: default
port: 80
- name: http-backend
namespace: default
port: 80
headersToBackend:
- header1
- header2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ securityPolicies:
extAuth:
http:
backendRefs:
- name: http-backend
namespace: default
- name: http-backend
namespace: default
headersToBackend:
- header1
- header2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ securityPolicies:
extAuth:
http:
backendRefs:
- name: http-backend
namespace: envoy-gateway
port: 80
- name: http-backend
namespace: envoy-gateway
port: 80
headersToBackend:
- header1
- header2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ securityPolicies:
extAuth:
http:
backendRefs:
- name: http-backend
namespace: default
port: 80
- name: http-backend
namespace: default
port: 80
headersToBackend:
- header1
- header2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ securityPolicies:
extAuth:
http:
backendRefs:
- Name: http-backend
Namespace: envoy-gateway
Port: 80
- Name: http-backend
Namespace: envoy-gateway
Port: 80
Path: /auth
headersToBackend:
- header1
Expand All @@ -222,6 +222,6 @@ securityPolicies:
- header2
grpc:
backendRefs:
- name: grpc-backend
port: 9000
- name: grpc-backend
port: 9000
failOpen: true
15 changes: 8 additions & 7 deletions internal/gatewayapi/testdata/securitypolicy-with-extauth.in.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ referenceGrants:
kind: SecurityPolicy
namespace: default
to:
- group: ''
- group: ""
kind: Service
securityPolicies:
- apiVersion: gateway.envoyproxy.io/v1alpha1
Expand All @@ -146,13 +146,14 @@ securityPolicies:
- header2
grpc:
backendRefs:
- name: grpc-backend
port: 9000
- name: grpc-backend
port: 9000
- apiVersion: gateway.envoyproxy.io/v1alpha1
kind: SecurityPolicy
metadata:
namespace: default
name: policy-for-gateway-1 # This will only apply to the httproute-2
# This will only apply to the httproute-2
name: policy-for-gateway-1
spec:
targetRef:
group: gateway.networking.k8s.io
Expand All @@ -162,9 +163,9 @@ securityPolicies:
failOpen: false
http:
backendRefs:
- Name: http-backend
Namespace: envoy-gateway
Port: 80
- Name: http-backend
Namespace: envoy-gateway
Port: 80
Path: /auth
headersToBackend:
- header1
Expand Down

0 comments on commit 7e2f577

Please sign in to comment.