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 16, 2023
1 parent 70503ee commit ea0dcaa
Show file tree
Hide file tree
Showing 9 changed files with 581 additions and 843 deletions.
114 changes: 0 additions & 114 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 Expand Up @@ -1451,112 +1443,6 @@ data:
parent_namespace: ["parentRef", "namespace"]
parent_section_name: ["parentRef", "sectionName"]
parent_port: ["parentRef", "port"]
- groupVersionKind:
group: kuadrant.io
kind: "TLSPolicy"
version: "v1alpha1"
metricNamePrefix: gatewayapi_tlspolicy
labelsFromPath:
name:
- metadata
- name
namespace:
- metadata
- namespace
metrics:
- name: "labels"
help: "Kubernetes labels converted to Prometheus labels."
each:
type: Info
info:
path: [metadata]
labelsFromPath:
"*": [labels]
- name: "created"
help: "created timestamp"
each:
type: Gauge
gauge:
path: [metadata, creationTimestamp]
- name: "deleted"
help: "deletion timestamp"
each:
type: Gauge
gauge:
path: [metadata, deletionTimestamp]
- name: "target_info"
help: "Target references that the tlspolicy wants to be attached to"
each:
type: Info
info:
path: [spec, targetRef]
labelsFromPath:
target_group: ["group"]
target_kind: ["kind"]
target_name: ["name"]
target_namespace: ["namespace"]
- name: "status"
help: "status condition"
each:
type: Gauge
gauge:
path: [status, conditions]
labelsFromPath:
type: ["type"]
valueFrom: ["status"]
- groupVersionKind:
group: kuadrant.io
kind: "RateLimitPolicy"
version: "v1beta2"
metricNamePrefix: gatewayapi_ratelimitpolicy
labelsFromPath:
name:
- metadata
- name
namespace:
- metadata
- namespace
metrics:
- name: "labels"
help: "Kubernetes labels converted to Prometheus labels."
each:
type: Info
info:
path: [metadata]
labelsFromPath:
"*": [labels]
- name: "created"
help: "created timestamp"
each:
type: Gauge
gauge:
path: [metadata, creationTimestamp]
- name: "deleted"
help: "deletion timestamp"
each:
type: Gauge
gauge:
path: [metadata, deletionTimestamp]
- name: "target_info"
help: "Target references that the tlspolicy wants to be attached to"
each:
type: Info
info:
path: [spec, targetRef]
labelsFromPath:
target_group: ["group"]
target_kind: ["kind"]
target_name: ["name"]
target_namespace: ["namespace"]
- name: "status"
help: "status condition"
each:
type: Gauge
gauge:
path: [status, conditions]
labelsFromPath:
type: ["type"]
valueFrom: ["status"]
- groupVersionKind:
group: gateway.networking.k8s.io
kind: "BackendTLSPolicy"
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 ea0dcaa

Please sign in to comment.