config

package
Version: v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestEnvConfig

type TestEnvConfig struct {
	WebhookURL         string
	ListenAddress      string
	KubeConfigPath     string
	WebhookCertPath    string
	WebhookCertKeyPath string
	WebhookCert        string
}

TestEnvConfig has the integration tests environment configuration.

func GetTestDevelopmentEnvConfig

func GetTestDevelopmentEnvConfig(t *testing.T) TestEnvConfig

GetTestDevelopmentEnvConfig gives a test env configuration that is helpful to develop the integration tests, instead of executing all the time through the main and creating and destroying the kubernets clusters, SSH tunnels... To create the test development environment do: Run k3s:

sudo k3s server

Run Ngrok on a port (this example `17661`) and :8080 address:

ssh -R 0:localhost:8080 tunnel.us.ngrok.com tcp 22

func GetTestEnvConfig

func GetTestEnvConfig(t *testing.T) TestEnvConfig

GetTestEnvConfig returns the configuration that should have the environment so the integration tests can be run.

Source Files

Jump to

Keyboard shortcuts

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