Skip to content

Commit b5685c8

Browse files
authored
Merge pull request #47 from Kuadrant/move-kuadrant-resources
Move kuadrant resources to separate kustomization file
2 parents aba137a + 549c3d0 commit b5685c8

13 files changed

+2518
-532
lines changed

.github/workflows/ci.yaml

+19-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: Checkout Code
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
- name: Download Kustomize
5050
run: |
5151
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
@@ -55,4 +55,21 @@ jobs:
5555
if ! make compare-bundles; then
5656
echo "::error:: Bundles comparison failed. Please run 'make generate-bundles' and check in changes."
5757
exit 1
58-
fi
58+
fi
59+
60+
check-kuadrant-custom-resource-state:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout Code
64+
uses: actions/checkout@v4
65+
66+
- name: Execute generation script
67+
run: ./hack/gen_kuadrant_custom_resource_state.sh
68+
69+
- name: Check for changes in generated file
70+
run: |
71+
if ! git diff --exit-code ./config/kuadrant/custom-resource-state.yaml; then
72+
echo "The generated file ./config/kuadrant/custom-resource-state.yaml has changes."
73+
echo "Please run './hack/gen_kuadrant_custom_resource_state.sh' locally and check in the changes."
74+
exit 1
75+
fi

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
bin/*
33

44
log/
5-
/vendor/
5+
/vendor/
6+
.vscode/

config/default/custom-resource-state.yaml

-251
Original file line numberDiff line numberDiff line change
@@ -459,204 +459,6 @@ spec:
459459
parent_namespace: ["parentRef", "namespace"]
460460
parent_section_name: ["parentRef", "sectionName"]
461461
parent_port: ["parentRef", "port"]
462-
- groupVersionKind:
463-
group: kuadrant.io
464-
kind: "TLSPolicy"
465-
version: "v1alpha1"
466-
metricNamePrefix: gatewayapi_tlspolicy
467-
labelsFromPath:
468-
name:
469-
- metadata
470-
- name
471-
namespace:
472-
- metadata
473-
- namespace
474-
metrics:
475-
- name: "labels"
476-
help: "Kubernetes labels converted to Prometheus labels."
477-
each:
478-
type: Info
479-
info:
480-
path: [metadata]
481-
labelsFromPath:
482-
"*": [labels]
483-
- name: "created"
484-
help: "created timestamp"
485-
each:
486-
type: Gauge
487-
gauge:
488-
path: [metadata, creationTimestamp]
489-
- name: "deleted"
490-
help: "deletion timestamp"
491-
each:
492-
type: Gauge
493-
gauge:
494-
path: [metadata, deletionTimestamp]
495-
- name: "target_info"
496-
help: "Target references that the tlspolicy wants to be attached to"
497-
each:
498-
type: Info
499-
info:
500-
path: [spec, targetRef]
501-
labelsFromPath:
502-
target_group: ["group"]
503-
target_kind: ["kind"]
504-
target_name: ["name"]
505-
target_namespace: ["namespace"]
506-
- name: "status"
507-
help: "status condition"
508-
each:
509-
type: Gauge
510-
gauge:
511-
path: [status, conditions]
512-
labelsFromPath:
513-
type: ["type"]
514-
valueFrom: ["status"]
515-
- groupVersionKind:
516-
group: kuadrant.io
517-
kind: "DNSRecord"
518-
version: "v1alpha1"
519-
metricNamePrefix: kuadrant_dnsrecord
520-
labelsFromPath:
521-
name:
522-
- metadata
523-
- name
524-
namespace:
525-
- metadata
526-
- namespace
527-
rootDomain:
528-
- spec
529-
- rootHost
530-
metrics:
531-
- name: "created"
532-
help: "created timestamp"
533-
each:
534-
type: Gauge
535-
gauge:
536-
path: [metadata, creationTimestamp]
537-
- name: "status_root_domain_owners"
538-
help: "root domain owners (the ids of controllers managing this root domain)"
539-
each:
540-
type: Info
541-
info:
542-
path: [status, domainOwners]
543-
labelsFromPath:
544-
owner: []
545-
- name: "status"
546-
help: "status condition"
547-
each:
548-
type: Gauge
549-
gauge:
550-
path: [status, conditions]
551-
labelsFromPath:
552-
type: ["type"]
553-
valueFrom: ["status"]
554-
- groupVersionKind:
555-
group: kuadrant.io
556-
kind: "DNSPolicy"
557-
version: "v1alpha1"
558-
metricNamePrefix: gatewayapi_dnspolicy
559-
labelsFromPath:
560-
name:
561-
- metadata
562-
- name
563-
namespace:
564-
- metadata
565-
- namespace
566-
metrics:
567-
- name: "labels"
568-
help: "Kubernetes labels converted to Prometheus labels."
569-
each:
570-
type: Info
571-
info:
572-
path: [metadata]
573-
labelsFromPath:
574-
"*": [labels]
575-
- name: "created"
576-
help: "created timestamp"
577-
each:
578-
type: Gauge
579-
gauge:
580-
path: [metadata, creationTimestamp]
581-
- name: "deleted"
582-
help: "deletion timestamp"
583-
each:
584-
type: Gauge
585-
gauge:
586-
path: [metadata, deletionTimestamp]
587-
- name: "target_info"
588-
help: "Target references that the dnspolicy wants to be attached to"
589-
each:
590-
type: Info
591-
info:
592-
path: [spec, targetRef]
593-
labelsFromPath:
594-
target_group: ["group"]
595-
target_kind: ["kind"]
596-
target_name: ["name"]
597-
target_namespace: ["namespace"]
598-
- name: "status"
599-
help: "status condition"
600-
each:
601-
type: Gauge
602-
gauge:
603-
path: [status, conditions]
604-
labelsFromPath:
605-
type: ["type"]
606-
valueFrom: ["status"]
607-
- groupVersionKind:
608-
group: kuadrant.io
609-
kind: "RateLimitPolicy"
610-
version: "v1beta2"
611-
metricNamePrefix: gatewayapi_ratelimitpolicy
612-
labelsFromPath:
613-
name:
614-
- metadata
615-
- name
616-
namespace:
617-
- metadata
618-
- namespace
619-
metrics:
620-
- name: "labels"
621-
help: "Kubernetes labels converted to Prometheus labels."
622-
each:
623-
type: Info
624-
info:
625-
path: [metadata]
626-
labelsFromPath:
627-
"*": [labels]
628-
- name: "created"
629-
help: "created timestamp"
630-
each:
631-
type: Gauge
632-
gauge:
633-
path: [metadata, creationTimestamp]
634-
- name: "deleted"
635-
help: "deletion timestamp"
636-
each:
637-
type: Gauge
638-
gauge:
639-
path: [metadata, deletionTimestamp]
640-
- name: "target_info"
641-
help: "Target references that the tlspolicy wants to be attached to"
642-
each:
643-
type: Info
644-
info:
645-
path: [spec, targetRef]
646-
labelsFromPath:
647-
target_group: ["group"]
648-
target_kind: ["kind"]
649-
target_name: ["name"]
650-
target_namespace: ["namespace"]
651-
- name: "status"
652-
help: "status condition"
653-
each:
654-
type: Gauge
655-
gauge:
656-
path: [status, conditions]
657-
labelsFromPath:
658-
type: ["type"]
659-
valueFrom: ["status"]
660462
- groupVersionKind:
661463
group: gateway.networking.k8s.io
662464
kind: "BackendTLSPolicy"
@@ -701,56 +503,3 @@ spec:
701503
target_kind: ["kind"]
702504
target_name: ["name"]
703505
target_namespace: ["namespace"]
704-
- groupVersionKind:
705-
group: kuadrant.io
706-
kind: "AuthPolicy"
707-
version: "v1beta2"
708-
metricNamePrefix: gatewayapi_authpolicy
709-
labelsFromPath:
710-
name:
711-
- metadata
712-
- name
713-
namespace:
714-
- metadata
715-
- namespace
716-
metrics:
717-
- name: "labels"
718-
help: "Kubernetes labels converted to Prometheus labels."
719-
each:
720-
type: Info
721-
info:
722-
path: [metadata]
723-
labelsFromPath:
724-
"*": [labels]
725-
- name: "created"
726-
help: "created timestamp"
727-
each:
728-
type: Gauge
729-
gauge:
730-
path: [metadata, creationTimestamp]
731-
- name: "deleted"
732-
help: "deletion timestamp"
733-
each:
734-
type: Gauge
735-
gauge:
736-
path: [metadata, deletionTimestamp]
737-
- name: "target_info"
738-
help: "Target references that the authpolicy wants to be attached to"
739-
each:
740-
type: Info
741-
info:
742-
path: [spec, targetRef]
743-
labelsFromPath:
744-
target_group: ["group"]
745-
target_kind: ["kind"]
746-
target_name: ["name"]
747-
target_namespace: ["namespace"]
748-
- name: "status"
749-
help: "status condition"
750-
each:
751-
type: Gauge
752-
gauge:
753-
path: [status, conditions]
754-
labelsFromPath:
755-
type: ["type"]
756-
valueFrom: ["status"]

0 commit comments

Comments
 (0)