Conversation
Review Summary by QodoAdd dashboard command with container port publishing support
WalkthroughsDescription• Implements new dashboard command to run krkn-dashboard web UI in container • Adds port publishing support (3000, 8000) for dashboard and container access • Extends Run and RunAttached methods with optional publish ports and Podman create options • Adds dashboard image configuration to config.json with name and tag fields • Implements Podman CLI-based container creation for macOS with platform and security options Diagramflowchart LR
A["User runs<br/>dashboard command"] --> B["Prepare kubeconfig<br/>and data directory"]
B --> C["Resolve container<br/>runtime socket"]
C --> D["Configure volumes<br/>and environment"]
D --> E["Pull dashboard image"]
E --> F["Create and run<br/>container with ports"]
F --> G["Dashboard available<br/>at localhost:3000"]
File Changes1. cmd/dashboard.go
|
Code Review by Qodo
1.
|
|
@khandrew-redhat can you take a look at the failed tests? |
Signed-off-by: Khephren Andrews <khandrew@redhat.com> removing empty file Signed-off-by: Khephren Andrews <khandrew@redhat.com> agent prompt edits Signed-off-by: Khephren Andrews <khandrew@redhat.com> temp image remove Signed-off-by: Khephren Andrews <khandrew@redhat.com> container test fix Signed-off-by: Khephren Andrews <khandrew@redhat.com> logs removal Signed-off-by: Khephren Andrews <khandrew@redhat.com> Test Updates Signed-off-by: Khephren Andrews <khandrew@redhat.com> another empty file removal Signed-off-by: Khephren Andrews <khandrew@redhat.com> test file edits Signed-off-by: Khephren Andrews <khandrew@redhat.com> dashboard route to prod Signed-off-by: Khephren Andrews <khandrew@redhat.com>
7217c02 to
9c3a708
Compare
Signed-off-by: Khephren Andrews <khandrew@redhat.com>
|
Failed tests are fixed on this PR (squashed commit) and associated dashboard PR has been edited. |
Signed-off-by: Khephren Andrews <khandrew@redhat.com>
Signed-off-by: Khephren Andrews <khandrew@redhat.com>
Signed-off-by: Khephren Andrews <khandrew@redhat.com>
Description
Implements Kraken Dashboard command.
Typing either...
krknctl dashboard --kubeconfig <path/to/kubeconfig>or
./krknctl dashboard --kubeconfig <path/to/kubeconfig>...should spinup a podman container of the dashboard on the host machine. Note that the --kubeconfig flag is required.
KRKN_DASHBOARD_KUBECONFIG_BIND_SRC is set so podman-remote run -v gets the kubeconfig’s path on the Podman host, not the in-container path the app uses for uploads and fs checks. The volume mounts do not work without this implementation.
Because of this, krkn-chaos/krkn-dashboard#63 must be merged before this PR so the krknctl will pull the dashboard image with the latest changes.
Adds functionality to open up necessary ports for user/server interaction (3000, 8000), and for passing in required volume mounts.
Documentation
Documentation for this change will be handled by https://redhat.atlassian.net/browse/CHAOS-1467