key

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagementCluster = "ManagementCluster"

	// Environment variables.
	EnvAWSAccessKeyID     = "AWS_ACCESS_KEY_ID"
	EnvAWSSecretAccessKey = "AWS_SECRET_ACCESS_KEY" // nolint: gosec
	EncryptionPassword    = "ENCRYPTION_PASSWORD"
)

Variables

This section is empty.

Functions

func FilenamePrefix

func FilenamePrefix(installationName string, clusterName string) string

func GetCtrlClient added in v3.2.0

func GetCtrlClient(config *restclient.Config) (client.Client, error)

func PrepareTLSConfig added in v3.2.0

func PrepareTLSConfig(caData []byte, crtData []byte, keyData []byte) (*tls.Config, error)

func RESTConfig added in v3.2.0

func RESTConfig(ctx context.Context, c client.Reader, cluster client.ObjectKey) (*restclient.Config, error)

RESTConfig returns a configuration instance to be used with a Kubernetes client.

func TLSConfigFromCertFiles added in v3.2.0

func TLSConfigFromCertFiles(ca string, cert string, key string) (*tls.Config, error)

func ToCustomObject

func ToCustomObject(v interface{}) (backupv1alpha1.ETCDBackup, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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