setup

package
v0.34.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Jump to

Keyboard shortcuts

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