From 002591828f935da22ae3ed64fe0c986b6aab85d4 Mon Sep 17 00:00:00 2001 From: Jason Madigan Date: Tue, 12 Nov 2024 12:59:24 +0000 Subject: [PATCH 1/2] Adding more Kinds for Authorinos, Limitadors and Kuadrants. Hide DNSRecords Signed-off-by: Jason Madigan --- src/components/PolicyTopologyPage.tsx | 3 ++- src/utils/latest.tsx | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/PolicyTopologyPage.tsx b/src/components/PolicyTopologyPage.tsx index 4723287..4ad3838 100644 --- a/src/components/PolicyTopologyPage.tsx +++ b/src/components/PolicyTopologyPage.tsx @@ -107,6 +107,7 @@ const parseDotToModel = (dotString: string): { nodes: any[]; edges: any[] } => { 'AuthorizationPolicy', 'EnvoyFilter', 'GatewayClass', + 'DNSRecord', ]); // kinds for unassociated policies - these will be grouped @@ -118,7 +119,7 @@ const parseDotToModel = (dotString: string): { nodes: any[]; edges: any[] } => { ]); // kinds for Kuadrant internals - these will be grouped also - const kuadrantInternals = new Set(['ConfigMap', 'Kuadrant']); + const kuadrantInternals = new Set(['ConfigMap', 'Kuadrant', 'Limitador', 'Authorino']); // reconnect edges for excluded, connected nodes (e.g. GatewayClass) const rewireExcludedEdges = (graph, sourceNodeId, targetNodeId) => { diff --git a/src/utils/latest.tsx b/src/utils/latest.tsx index a234866..6371b3d 100644 --- a/src/utils/latest.tsx +++ b/src/utils/latest.tsx @@ -9,6 +9,9 @@ const resourceGVKMapping: { [key: string]: { group: string; version: string; kin Listener: { group: 'gateway.networking.k8s.io', version: 'v1', kind: 'Listener' }, GatewayClass: { group: 'gateway.networking.k8s.io', version: 'v1', kind: 'GatewayClass' }, WasmPlugin: { group: 'extensions.istio.io', version: 'v1alpha1', kind: 'WasmPlugin' }, + Authorino: { group: 'operator.authorino.kuadrant.io', version: 'v1beta1', kind: 'Authorino' }, + Limitador: { group: 'limitador.kuadrant.io', version: 'v1alpha1', kind: 'Limitador' }, + Kuadrant: { group: 'kuadrant.io', version: 'v1beta1', kind: 'Kuadrant' }, }; export default resourceGVKMapping; From 3bfaceec378c2c43c91419f6de16b13991d93e78 Mon Sep 17 00:00:00 2001 From: Jason Madigan Date: Wed, 13 Nov 2024 10:27:27 +0000 Subject: [PATCH 2/2] shift plugin to kuadrant-system, like the operator Signed-off-by: Jason Madigan --- install.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.yaml b/install.yaml index 748cb1f..a3c8fde 100644 --- a/install.yaml +++ b/install.yaml @@ -1,20 +1,20 @@ apiVersion: v1 kind: Namespace metadata: - name: kuadrant-console-plugin + name: kuadrant-system --- apiVersion: apps/v1 kind: Deployment metadata: name: kuadrant-console-plugin - namespace: kuadrant-console-plugin + namespace: kuadrant-system labels: app: kuadrant-console-plugin app.kubernetes.io/component: kuadrant-console-plugin app.kubernetes.io/instance: kuadrant-console-plugin app.kubernetes.io/name: kuadrant-console-plugin app.kubernetes.io/part-of: kuadrant-console-plugin - app.openshift.io/runtime-namespace: kuadrant-console-plugin + app.openshift.io/runtime-namespace: kuadrant-system spec: replicas: 1 selector: @@ -70,7 +70,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: nginx-conf - namespace: kuadrant-console-plugin + namespace: kuadrant-system labels: app: kuadrant-console-plugin app.kubernetes.io/component: kuadrant-console-plugin @@ -112,7 +112,7 @@ metadata: annotations: service.alpha.openshift.io/serving-cert-secret-name: plugin-serving-cert name: kuadrant-console-plugin - namespace: kuadrant-console-plugin + namespace: kuadrant-system labels: app: kuadrant-console-plugin app.kubernetes.io/component: kuadrant-console-plugin @@ -140,6 +140,6 @@ spec: type: Service service: name: kuadrant-console-plugin - namespace: kuadrant-console-plugin + namespace: kuadrant-system port: 9443 basePath: '/'