mock-virtualworkspace

command
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 27 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

Command mock-virtualworkspace stands in for a virtual workspace server that is not kcp's own, so the e2e tests can exercise VirtualWorkspace.spec.command, spec.initContainers and the per-container kubeconfigs without depending on a real third-party server.

It is a faithful stand-in in the ways the operator's contract can break:

  • It declares exactly the flags the operator generates and nothing else. pflag exits on an unknown flag, so if the operator ever passes a kcp-only argument to a custom server again, this binary refuses to start and the pod never comes up.
  • It serves TLS with the certificate the operator issued, on the port the operator chose.
  • It connects to kcp with the kubeconfig it was given and reports, at /selfcheck, which identity that turned out to be and what that identity may and may not do.

Jump to

Keyboard shortcuts

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