Skip to main content

Module vcluster

Module vcluster 

Source
Expand description

Port of internal/cluster/vcluster/driver.go and internal/cluster/vcluster/errors.go: a super::Driver implementation that runs a vcluster (virtual cluster) inside a host cluster’s namespace.

Executor injection. As with driver::external (see that module’s doc comment for the full rationale), this driver takes its Arc<dyn CommandRunner + Send + Sync> once, at construction, rather than pulling it off an ambient context on every call.

Structs§

Driver
Port of vcluster.Driver.
VClusterListEntry
Port of vcluster.vclusterListEntry, the JSON shape of vcluster list -o json.

Enums§

VClusterError
Port of vcluster/errors.go.

Constants§

DRIVER_NAME

Functions§

host_context
Port of (*vcluster.Driver).hostContext.
kube_context_name
Port of (*vcluster.Driver).kubeContextName.
manage_namespace
Port of (*vcluster.Driver).manageNamespace.
map_state
Port of vcluster.mapState.
namespace
Port of (*vcluster.Driver).namespace.
namespace_manifest
Port of the namespace Namespace manifest applied before vcluster create when manageNamespace() is true. Extracted as a standalone, directly-testable function since the shared MockCommandRunner does not expose the stdin content passed to run, unlike the Go test suite’s RunAndReturn capture (see PORT_NOTES.md).
wait_for_load_balancer_ip
Port of (*vcluster.Driver).waitForLoadBalancerIP, called with an empty environment (mirroring the Go test suite calling it directly with a nil env).