Documentation ¶
Index ¶
- Constants
- func FilenamePrefix(installationName string, clusterName string) string
- func GetCtrlClient(config *restclient.Config) (client.Client, error)
- func PrepareTLSConfig(caData []byte, crtData []byte, keyData []byte) (*tls.Config, error)
- func RESTConfig(ctx context.Context, c client.Reader, cluster client.ObjectKey) (*restclient.Config, error)
- func TLSConfigFromCertFiles(ca string, cert string, key string) (*tls.Config, error)
- func ToCustomObject(v interface{}) (backupv1alpha1.ETCDBackup, error)
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 GetCtrlClient ¶
func GetCtrlClient(config *restclient.Config) (client.Client, error)
func PrepareTLSConfig ¶
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 ToCustomObject ¶
func ToCustomObject(v interface{}) (backupv1alpha1.ETCDBackup, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.