-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(dataplanes): add filtered XDS config to inbound drawers
Signed-off-by: John Cowen <[email protected]>
- Loading branch information
Showing
6 changed files
with
143 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ connections: | |
item: | ||
navigation: | ||
overview: 'Overview' | ||
xds: 'XDS Configuration' | ||
stats: 'Stats' | ||
clusters: 'Clusters' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
packages/kuma-gui/src/app/connections/views/ConnectionInboundSummaryXdsConfigView.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<template> | ||
<RouteView | ||
:params="{ | ||
codeSearch: '', | ||
codeFilter: false, | ||
codeRegExp: false, | ||
mesh: '', | ||
dataPlane: '', | ||
connection: '', | ||
includeEds: false, | ||
}" | ||
name="connection-inbound-summary-xds-config-view" | ||
v-slot="{ route, uri }" | ||
> | ||
<RouteTitle | ||
:render="false" | ||
:title="`XDS Configuration`" | ||
/> | ||
<AppView> | ||
<DataLoader | ||
:src="uri(sources, '/meshes/:mesh/dataplanes/:dataplane/inbound/:inbound/xds', { | ||
mesh: route.params.mesh, | ||
dataplane: route.params.dataPlane, | ||
inbound: `${props.data.addressPort}`, | ||
})" | ||
v-slot="{ data: raw, refresh }" | ||
> | ||
<XCodeBlock | ||
language="json" | ||
:code="JSON.stringify(raw, null, 2)" | ||
is-searchable | ||
:query="route.params.codeSearch" | ||
:is-filter-mode="route.params.codeFilter" | ||
:is-reg-exp-mode="route.params.codeRegExp" | ||
@query-change="route.update({ codeSearch: $event })" | ||
@filter-mode-change="route.update({ codeFilter: $event })" | ||
@reg-exp-mode-change="route.update({ codeRegExp: $event })" | ||
> | ||
<template #primary-actions> | ||
<XAction | ||
action="refresh" | ||
appearance="primary" | ||
@click="refresh" | ||
> | ||
Refresh | ||
</XAction> | ||
</template> | ||
</XCodeBlock> | ||
</DataLoader> | ||
</AppView> | ||
</RouteView> | ||
</template> | ||
<script lang="ts" setup> | ||
import type { DataplaneInbound, DataplaneOverview } from '@/app/data-planes/data/' | ||
import { sources } from '@/app/data-planes/sources' | ||
const props = defineProps<{ | ||
data: DataplaneInbound | ||
dataplaneOverview: DataplaneOverview | ||
}>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters