Skip to content

Commit

Permalink
Adding more Kinds for Authorinos, Limitadors and Kuadrants. Hide DNSR…
Browse files Browse the repository at this point in the history
…ecords

Signed-off-by: Jason Madigan <[email protected]>
  • Loading branch information
jasonmadigan committed Nov 12, 2024
1 parent da4dc05 commit 0025918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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 0025918

Please sign in to comment.