vpnshoot

package
v1.42.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ManagedResourceName is the name of the ManagedResource containing the resource specifications.
	ManagedResourceName = "shoot-core-vpn-shoot"
	// SecretNameVPNShootClient is the constant for the shoot secret name when ReversedVPN is enabled.
	SecretNameVPNShootClient = "vpn-shoot-client"
	// SecretNameVPNShoot is the constant for the shoot secret name when ReversedVPN is not enabled.
	SecretNameVPNShoot = "vpn-shoot"
)

Variables

View Source
var TimeoutWaitForManagedResource = 2 * time.Minute

TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.

Functions

func CentralLoggingConfiguration

func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)

CentralLoggingConfiguration returns a fluent-bit parser and filter for the VPNShoot logs.

Types

type Interface

type Interface interface {
	component.DeployWaiter
	component.MonitoringComponent
	// SetSecrets sets the secrets.
	SetSecrets(Secrets)
}

Interface contains functions for a VPNShoot Deployer

func New

func New(
	client client.Client,
	namespace string,
	values Values,
) Interface

New creates a new instance of DeployWaiter for vpnshoot

type NetworkValues

type NetworkValues struct {
	// PodCIDR is the CIDR of the pod network.
	PodCIDR string
	// ServiceCIDR is the CIDR of the service network.
	ServiceCIDR string
	// NodeCIDR is the CIDR of the node network.
	NodeCIDR string
}

NetworkValues contains the configuration values for the network.

type ReversedVPNValues

type ReversedVPNValues struct {
	// Enabled marks whether ReversedVPN is enabled for the shoot
	Enabled bool
	// Header is the header for the ReversedVPN.
	Header string
	// Endpoint is the endpoint for the ReversedVPN.
	Endpoint string
	// OpenVPNPort is the port for the ReversedVPN.
	OpenVPNPort int32
}

ReversedVPNValues contains the configuration values for the ReversedVPN.

type Secrets

type Secrets struct {
	// TLSAuth is a secret containing the tls auth credentials.
	TLSAuth component.Secret
	// DH is a secret containing the Diffie-Hellman credentials.
	DH *component.Secret
	// Server is a secret containing the server certificate and key.
	Server component.Secret
}

Secrets is collection of secrets for the vpn-shoot.

type Values

type Values struct {
	// Image is the container image used for vpnShoot.
	Image string
	// PodAnnotations is the set of additional annotations to be used for the pods.
	PodAnnotations map[string]string
	// VPAEnabled marks whether VerticalPodAutoscaler is enabled for the shoot.
	VPAEnabled bool
	// ReversedVPN contains the configuration values for the ReversedVPN.
	ReversedVPN ReversedVPNValues
	// Network contains the configuration values for the network.
	Network NetworkValues
}

Values is a set of configuration values for the VPNShoot component.

Jump to

Keyboard shortcuts

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