setup

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatewayAPIPreSetup added in v0.35.0

func GatewayAPIPreSetup() func(ctx context.Context) error

GatewayAPIPreSetup installs the local Gateway API CRDs required by the Gateway API e2e suite on the host cluster before vCluster starts. The CRDs are intentionally left installed after the suite because they are shared cluster-scoped infrastructure.

func InstallCSIHostpath

func InstallCSIHostpath(kubeContext string) func(ctx context.Context) error

InstallCSIHostpath returns a PreSetupFunc that installs the CSI hostpath driver, snapshot CRDs, snapshot-controller, StorageClass, and VolumeSnapshotClass on the host cluster. This is required for snapshot tests that use PVCs with StorageClassName "csi-hostpath-sc".

Idempotent - skips components that already exist.

func MetricsServerPreSetup

func MetricsServerPreSetup() func(ctx context.Context) error

MetricsServerPreSetup returns a PreSetupFunc that installs metrics-server on the host cluster using Helm. This is required for the metrics proxy integration tests (integrations.metricsServer.enabled: true), which need a real metrics-server to be running on the host before the vCluster starts.

Idempotent - skips installation if metrics-server is already present.

func SnapshotPreSetup

func SnapshotPreSetup(vclusterName string) func(ctx context.Context) error

SnapshotPreSetup returns a PreSetupFunc that installs the CSI hostpath driver and snapshot infrastructure, then creates the snapshot-data PVC in the vCluster's host namespace.

Types

This section is empty.

Directories

Path Synopsis
Package lazyvcluster wraps e2e-framework's vcluster.Create with YAML template rendering and the shared DefaultVClusterOptions bag.
Package lazyvcluster wraps e2e-framework's vcluster.Create with YAML template rendering and the shared DefaultVClusterOptions bag.

Jump to

Keyboard shortcuts

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