+
+
+ Type
+
+
+ {{ props.data.type }}
+
+
+
+
+ Namespace
+
+
+ {{ props.data.namespace }}
+
+
+
@@ -38,6 +64,28 @@
+
+
+ {{ t('http.api.property.targetRef') }}
+
+
+
+
+ {{ props.data.spec.targetRef.kind }}:{{ props.data.spec.targetRef.name }}
+
+
+ Mesh
+
+
+
diff --git a/src/app/policies/views/PolicyListView.vue b/src/app/policies/views/PolicyListView.vue
index 51b841bfe..1c55ea570 100644
--- a/src/app/policies/views/PolicyListView.vue
+++ b/src/app/policies/views/PolicyListView.vue
@@ -168,15 +168,18 @@
-
-
- {{ row.spec.targetRef.kind }}:{{ row.spec.targetRef.name }}
-
-
-
-
- {{ t('common.detail.none') }}
-
+
+ {{ row.spec.targetRef.kind }}:{{ row.spec.targetRef.name }}
+
+
+ Mesh
+
diff --git a/src/test-support/mocks/fs.ts b/src/test-support/mocks/fs.ts
index bb2b1f06d..7c9217f96 100644
--- a/src/test-support/mocks/fs.ts
+++ b/src/test-support/mocks/fs.ts
@@ -45,6 +45,7 @@ import _138 from './src/meshes/_/meshexternalservices'
import _139 from './src/meshes/_/meshexternalservices/_'
import _52 from './src/meshes/_/meshfaultinjections'
import _53 from './src/meshes/_/meshfaultinjections/_'
+import _54 from './src/meshes/_/meshfaultinjections/_/_resources/dataplanes'
import _31 from './src/meshes/_/meshgatewayroutes'
import _32 from './src/meshes/_/meshgatewayroutes/_'
import _33 from './src/meshes/_/meshgateways'
@@ -148,6 +149,7 @@ export const fs: FS = {
'/meshes/:mesh/health-checks/:name': _30,
'/meshes/:mesh/meshfaultinjections': _52,
'/meshes/:mesh/meshfaultinjections/:name': _53,
+ '/meshes/:mesh/meshfaultinjections/:name/_resources/dataplanes': _54,
'/meshes/:mesh/meshgatewayroutes': _31,
'/meshes/:mesh/meshgatewayroutes/:name': _32,
'/meshes/:mesh/meshgateways': _33,
diff --git a/src/test-support/mocks/src/mesh-insights/_.ts b/src/test-support/mocks/src/mesh-insights/_.ts
index 37e4afeb8..be51f3035 100644
--- a/src/test-support/mocks/src/mesh-insights/_.ts
+++ b/src/test-support/mocks/src/mesh-insights/_.ts
@@ -1,12 +1,11 @@
import type { EndpointDependencies, MockResponder } from '@/test-support'
export default ({ env, fake }: EndpointDependencies): MockResponder => (req) => {
const params = req.params
- const policyTypes = [
+
+ const legacyTypes = [
'CircuitBreaker',
'FaultInjection',
'HealthCheck',
- 'MeshGatewayRoute',
- 'MeshGateway',
'ProxyTemplate',
'RateLimit',
'Retry',
@@ -17,6 +16,23 @@ export default ({ env, fake }: EndpointDependencies): MockResponder => (req) =>
'TrafficTrace',
'VirtualOutbound',
]
+ const policyTypes = [
+ 'MeshAccessLog',
+ 'MeshCircuitBreaker',
+ 'MeshFaultInjection',
+ 'MeshGatewayRoute',
+ 'MeshHTTPRoute',
+ 'MeshHealthCheck',
+ 'MeshLoadBalancingStrategy',
+ 'MeshMetric',
+ 'MeshProxyPatch',
+ 'MeshRateLimit',
+ 'MeshRetry',
+ 'MeshTCPRoute',
+ 'MeshTimeout',
+ 'MeshTrace',
+ 'MeshTrafficPermission',
+ ].concat(legacyTypes)
const serviceTotal = parseInt(env('KUMA_SERVICE_COUNT', `${fake.number.int({ min: 1, max: 30 })}`))
diff --git a/src/test-support/mocks/src/meshes/_/meshfaultinjections.ts b/src/test-support/mocks/src/meshes/_/meshfaultinjections.ts
index 7c8651c77..8ccdce4ba 100644
--- a/src/test-support/mocks/src/meshes/_/meshfaultinjections.ts
+++ b/src/test-support/mocks/src/meshes/_/meshfaultinjections.ts
@@ -34,10 +34,6 @@ export default ({ fake, pager, env }: EndpointDependencies): MockResponder => (r
}
: {}),
spec: {
- targetRef: {
- kind: 'MeshService',
- name: fake.hacker.noun(),
- },
from: [
{
targetRef: {
diff --git a/src/test-support/mocks/src/meshes/_/meshfaultinjections/_.ts b/src/test-support/mocks/src/meshes/_/meshfaultinjections/_.ts
index 1b3268d8e..c910879b5 100644
--- a/src/test-support/mocks/src/meshes/_/meshfaultinjections/_.ts
+++ b/src/test-support/mocks/src/meshes/_/meshfaultinjections/_.ts
@@ -24,10 +24,6 @@ export default ({ fake, env }: EndpointDependencies): MockResponder => (req) =>
}
: {}),
spec: {
- targetRef: {
- kind: 'MeshService',
- name: fake.hacker.noun(),
- },
from: [
{
targetRef: {
diff --git a/src/test-support/mocks/src/meshes/_/meshfaultinjections/_/_resources/dataplanes.ts b/src/test-support/mocks/src/meshes/_/meshfaultinjections/_/_resources/dataplanes.ts
new file mode 100644
index 000000000..fab467522
--- /dev/null
+++ b/src/test-support/mocks/src/meshes/_/meshfaultinjections/_/_resources/dataplanes.ts
@@ -0,0 +1,28 @@
+import type { EndpointDependencies, MockResponder } from '@/test-support'
+
+export default (_deps: EndpointDependencies): MockResponder => (_req) => {
+ return {
+ headers: {},
+ body: {
+ total: 3,
+ items: [
+ {
+ type: 'Dataplane',
+ mesh: 'default',
+ name: 'backend',
+ },
+ {
+ type: 'Dataplane',
+ mesh: 'default',
+ name: 'db',
+ },
+ {
+ type: 'Dataplane',
+ mesh: 'default',
+ name: 'frontend',
+ },
+ ],
+ next: null,
+ },
+ }
+}