kumahq / kuma-gui

🐻 A GUI built on Vue.js for use with Kuma.
https://kuma.io/
Apache License 2.0
39 stars 22 forks source link

Policy table should handle omitted top-level targetRefs #2934

Closed lobkovilya closed 2 months ago

lobkovilya commented 2 months ago

Description

Since Kuma 2.9 it's possible to create policy without the top-level targetRef:

type: MeshTimeout
name: mt1
mesh: default
spec:
  to:
    - targetRef:
        kind: MeshService
        name: redis

which is an equivalent of:

type: MeshTimeout
name: mt1
mesh: default
spec:
  targetRef:
    kind: Mesh
  to:
    - targetRef:
        kind: MeshService
        name: redis

In policy table Target ref we want to see Mesh instead of :

image