tests

package
v0.0.0-...-f4dfa5d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupDataDir

func CleanupDataDir(cnf *config.Control)

CleanupDataDir removes the associated "/tmp/k3s/<RANDOM_STRING>" directory along with the 'latest' symlink that points at it.

func ClusterIPNet

func ClusterIPNet() *net.IPNet

func GenerateDataDir

func GenerateDataDir(cnf *config.Control) error

GenerateDataDir creates a temporary directory at "/tmp/k3s/<RANDOM_STRING>/". The latest directory created with this function is soft linked to "/tmp/k3s/latest/". This allows tests to replicate the "/var/lib/rancher/k3s" directory structure.

func GenerateRuntime

func GenerateRuntime(cnf *config.Control) error

GenerateRuntime creates a temporary data dir and configures config.ControlRuntime with all the appropriate certificate keys.

func ServiceIPNet

func ServiceIPNet() *net.IPNet

Types

This section is empty.

Directories

Path Synopsis
e2e

Jump to

Keyboard shortcuts

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