Skip to content

Commit

Permalink
Merge pull request #147 from Kuadrant/add-more-kinds
Browse files Browse the repository at this point in the history
Adding more Kinds for Authorinos, Limitadors and Kuadrants. Hide DNSRecords
  • Loading branch information
openshift-merge-bot[bot] authored Nov 13, 2024
2 parents a547ac8 + 3bfacee commit e2c5a41
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions install.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -140,6 +140,6 @@ spec:
type: Service
service:
name: kuadrant-console-plugin
namespace: kuadrant-console-plugin
namespace: kuadrant-system
port: 9443
basePath: '/'
3 changes: 2 additions & 1 deletion src/components/PolicyTopologyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const parseDotToModel = (dotString: string): { nodes: any[]; edges: any[] } => {
'AuthorizationPolicy',
'EnvoyFilter',
'GatewayClass',
'DNSRecord',
]);

// kinds for unassociated policies - these will be grouped
Expand All @@ -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) => {
Expand Down
3 changes: 3 additions & 0 deletions src/utils/latest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit e2c5a41

Please sign in to comment.