rancher / kubewarden-ui

Kubewarden's User Interface
Apache License 2.0
11 stars 13 forks source link

`View Logs` only works for the default PolicyServer #19

Closed jordojordo closed 2 years ago

jordojordo commented 2 years ago

Is there an existing issue for this?

Current Behavior

If other policy servers are created the View Logs action does not work. This error is logged to the console:

Error dispatching console for pod: undefined

Expected Behavior

The View Log action should open the corresponding pod with the selected PolicyServer

Steps To Reproduce

  1. On the latest package
  2. Install the Kubewarden stack along with the default PolicyServer
  3. Add a second PolicyServer
  4. Select View Logs for the new PolicyServer
jordojordo commented 2 years ago

Reference this commit.

The View Logs action now supports multiple PolicyServers, which also changes the way we were searching for the correct pods by targeting the metadata.labels.app property of a pod to match the name of the specified PolicyServer.


https://user-images.githubusercontent.com/40806497/157112475-7f3f35f1-e32c-4ed9-bdcd-46835766f2ce.mp4