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. - VCluster
List Entry - Port of
vcluster.vclusterListEntry, the JSON shape ofvcluster list -o json.
Enums§
- VCluster
Error - Port of
vcluster/errors.go.
Constants§
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
Namespacemanifest applied beforevcluster createwhenmanageNamespace()is true. Extracted as a standalone, directly-testable function since the sharedMockCommandRunnerdoes not expose the stdin content passed torun, unlike the Go test suite’sRunAndReturncapture (seePORT_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 anilenv).