visualize-reservations

command
v0.0.0-...-ccb81e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Tool to visualize failover reservations and their VM connections

Usage:

go run tools/visualize-reservations/main.go [flags]

Flags:

--config=path              Path to JSON config file (CLI flags override config values)
--sort=vm|vm-host|res-host  Sort VMs by UUID, VM host, or reservation host
--postgres-secret=name      Name of the kubernetes secret containing postgres credentials (default: cortex-nova-postgres)
--namespace=ns              Namespace of the postgres secret (default: default)
--postgres-host=host        Override postgres host (useful with port-forward, e.g., localhost)
--postgres-port=port        Override postgres port (useful with port-forward, e.g., 5432)
--postgres-port-forward      Automatically run kubectl port-forward for postgres
--postgres-port-forward-service=name       Service name for port-forward (defaults to secret host)
--postgres-port-forward-local-port=port    Local port for port-forward (defaults to postgres port)
--postgres-port-forward-remote-port=port   Remote port for port-forward (defaults to postgres port)
--views=view1,view2,...     Comma-separated list of views to show (default: all)
                            Available views: hypervisors, vms, reservations, summary,
                            hypervisor-summary, validation, stale, without-res, not-in-db, by-host
--hide=view1,view2,...      Comma-separated list of views to hide (applied after --views)
--filter-name=pattern       Filter hypervisors by name (substring match)
--filter-trait=trait        Filter hypervisors by trait (e.g., CUSTOM_HANA_EXCLUSIVE_HOST)
--hypervisor-context=name   Kubernetes context for reading Hypervisors (default: current context, backward compatible)
--hypervisor-contexts=ctx1,ctx2,...        Kubernetes contexts for reading Hypervisors
--reservation-context=name  Kubernetes context for reading Reservations (default: current context, backward compatible)
--reservation-contexts=ctx1,ctx2,...       Kubernetes contexts for reading Reservations
--postgres-context=name     Kubernetes context for reading postgres secret (default: current context)

To connect to postgres when running locally, use kubectl port-forward:

kubectl port-forward svc/cortex-nova-postgresql 5432:5432 -n <namespace>
go run tools/visualize-reservations/main.go --postgres-host=localhost --postgres-port=5432

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL