Skip to content

Commit

Permalink
Separated kuadrant policies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ygnas committed Oct 17, 2023
1 parent a93c0f2 commit c25dad2
Show file tree
Hide file tree
Showing 12 changed files with 620 additions and 827 deletions.
90 changes: 0 additions & 90 deletions config/examples/enterprise/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -625,96 +625,6 @@ status:
- group: gateway.networking.k8s.io
kind: GRPCRoute
---
apiVersion: kuadrant.io/v1alpha1
kind: TLSPolicy
metadata:
name: external
namespace: istio-system
spec:
targetRef:
name: external
group: gateway.networking.k8s.io
kind: Gateway
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: selfsigned-cluster-issuer
status:
conditions:
- lastTransitionTime: "2023-08-21T22:53:08Z"
message: Gateway is TLS Enabled
reason: GatewayTLSEnabled
status: "True"
type: Ready
---
apiVersion: kuadrant.io/v1alpha1
kind: TLSPolicy
metadata:
name: internal
namespace: istio-system
spec:
targetRef:
name: internal
group: gateway.networking.k8s.io
kind: Gateway
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: selfsigned-cluster-issuer
status:
conditions:
- lastTransitionTime: "2023-08-21T22:53:08Z"
message: Gateway is TLS Enabled
reason: GatewayTLSEnabled
status: "True"
type: Ready
---
apiVersion: kuadrant.io/v1beta2
kind: RateLimitPolicy
metadata:
name: rlp-www
spec:
targetRef:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: www
limits:
"global":
rates:
- limit: 5
duration: 10
unit: second
status:
conditions:
- lastTransitionTime: "2023-08-21T22:53:08Z"
message: HTTPRoute is ratelimited
reason: HTTPRouteProtected
status: "True"
type: Available
---
apiVersion: kuadrant.io/v1beta2
kind: RateLimitPolicy
metadata:
name: rlp-cdn
spec:
targetRef:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: cdn
limits:
"global":
rates:
- limit: 5
duration: 10
unit: second
status:
conditions:
- lastTransitionTime: "2023-08-21T22:53:08Z"
message: HTTPRoute is ratelimited
reason: HTTPRouteProtected
status: "True"
type: Available
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: BackendTLSPolicy
metadata:
Expand Down
8 changes: 0 additions & 8 deletions config/examples/kube-prometheus/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,6 @@ rules:
verbs:
- list
- watch
- apiGroups:
- kuadrant.io
resources:
- tlspolicies
- ratelimitpolicies
verbs:
- list
- watch

---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
11 changes: 0 additions & 11 deletions config/examples/kube-prometheus/ksm_clusterrole_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,3 @@
verbs:
- list
- watch
- op: add
path: /rules/-
value:
apiGroups:
- "kuadrant.io"
resources:
- tlspolicies
- ratelimitpolicies
verbs:
- list
- watch
8 changes: 0 additions & 8 deletions config/examples/kube-state-metrics/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,3 @@ rules:
verbs:
- list
- watch
- apiGroups:
- "kuadrant.io"
resources:
- tlspolicies
- ratelimitpolicies
verbs:
- list
- watch
397 changes: 0 additions & 397 deletions config/gateway-api/crd/standard/kuadrant.io_ratelimitpolicies.yaml

This file was deleted.

Loading

0 comments on commit c25dad2

Please sign in to comment.