key

package
v4.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 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

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

func PrepareTLSConfig

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

func RESTConfig

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

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