Documentation
¶
Overview ¶
Package sync contains core resource sync tests (pods, PVCs, services, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func K8sDefaultEndpointSpec ¶
func K8sDefaultEndpointSpec()
K8sDefaultEndpointSpec registers the spec.
func NodeSyncLabelSelectorSpec ¶
func NodeSyncLabelSelectorSpec()
NodeSyncLabelSelectorSpec registers the spec.
func PodVersionSkewSpec ¶
func PodVersionSkewSpec()
PodVersionSkewSpec registers pod sync specs that require a virtual cluster older than the host (virtual < 1.34 <= host), the setup from https://github.com/loft-sh/vcluster/issues/3578.
func SyncErrorSanitisationSpec ¶
func SyncErrorSanitisationSpec()
SyncErrorSanitisationSpec verifies that SyncError warning events recorded on virtual pods never expose the host-side translated pod name.
The host pod name (e.g. "my-pod-x-default-x-my-vc") must not appear in event messages visible from inside the virtual cluster. The sanitising event recorder (pkg/syncer/translator/sanitising_event_recorder.go) rewrites it back to the virtual name before the event is persisted.
Types ¶
This section is empty.