Skip to content

Commit

Permalink
fix: config samples (#1002)
Browse files Browse the repository at this point in the history
Signed-off-by: KevFan <[email protected]>
  • Loading branch information
KevFan authored Nov 12, 2024
1 parent 2565b7c commit 365b170
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
20 changes: 12 additions & 8 deletions bundle/manifests/kuadrant-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ metadata:
"apiVersion": "kuadrant.io/v1",
"kind": "AuthPolicy",
"metadata": {
"name": "toystore"
"name": "authpolicy-sample"
},
"spec": {
"rules": {
"authentication": {
"apikey": {
"apiKey": {
"selector": {}
}
},
"credentials": {
"authorizationHeader": {
"prefix": "APIKEY"
},
"credentials": {
"authorizationHeader": {
"prefix": "APIKEY"
}
}
}
}
Expand All @@ -40,9 +40,13 @@ metadata:
},
"spec": {
"healthCheck": {
"endpoint": "/",
"protocol": "HTTP"
},
"providerRefs": [
{
"name": "provider-ref"
}
],
"targetRef": {
"group": "gateway.networking.k8s.io",
"kind": "Gateway",
Expand All @@ -54,7 +58,7 @@ metadata:
"apiVersion": "kuadrant.io/v1",
"kind": "RateLimitPolicy",
"metadata": {
"name": "toystore"
"name": "ratelimitpolicy-sample"
},
"spec": {
"limits": {
Expand Down
8 changes: 4 additions & 4 deletions config/samples/kuadrant_v1_authpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: kuadrant.io/v1
kind: AuthPolicy
metadata:
name: toystore
name: authpolicy-sample
spec:
targetRef:
group: gateway.networking.k8s.io
Expand All @@ -13,6 +13,6 @@ spec:
"apikey":
apiKey:
selector: {}
credentials:
authorizationHeader:
prefix: APIKEY
credentials:
authorizationHeader:
prefix: APIKEY
3 changes: 2 additions & 1 deletion config/samples/kuadrant_v1_dnspolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ spec:
group: gateway.networking.k8s.io
kind: Gateway
healthCheck:
endpoint: /
protocol: HTTP
providerRefs:
- name: "provider-ref"
2 changes: 1 addition & 1 deletion config/samples/kuadrant_v1_ratelimitpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: kuadrant.io/v1
kind: RateLimitPolicy
metadata:
name: toystore
name: ratelimitpolicy-sample
spec:
targetRef:
group: gateway.networking.k8s.io
Expand Down

0 comments on commit 365b170

Please sign in to comment.