Documentation
¶
Index ¶
- Constants
- func CheckPort(port int) error
- func ResolvePod(ctx context.Context, cs kubernetes.Interface, ns, svcName string) (string, error)
- func ResolveRuntimePod(ctx context.Context, cs kubernetes.Interface, ns string) (string, error)
- func RunAll(ctx context.Context, cfg *rest.Config, cs kubernetes.Interface, ...)
- type ForwardTarget
- type FoundService
Constants ¶
View Source
const ( KomponentRuntime = "runtime" KomponentCC = "control-center" KomponentGateway = "gateway" )
Variables ¶
This section is empty.
Functions ¶
func ResolvePod ¶
ResolvePod returns the name of a running pod backing the given service.
func ResolveRuntimePod ¶
ResolveRuntimePod reads the Runtime leader Lease and returns the holder pod name. Uses the Go client directly — not a kubectl subprocess.
Types ¶
type ForwardTarget ¶
type ForwardTarget struct {
Label string // display name, e.g. "Runtime"
Komponent string // KomponentRuntime | KomponentCC | KomponentGateway
Namespace string
LocalPort int
Scheme string // "http" or "https"
ViaLease bool // true for Runtime: resolve pod from Lease, probe health before declaring connected
}
ForwardTarget describes one component to port-forward.
type FoundService ¶
FoundService is a discovered Orkestra service and its port.
func FindService ¶
func FindService(ctx context.Context, cs kubernetes.Interface, ns, komponent string) (*FoundService, error)
FindService lists Services with the given komponent label in ns. Returns nil, nil when no matching service is found (component not deployed).
Click to show internal directories.
Click to hide internal directories.