secrets

package
v1.28.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package secrets provides functions to manage and handle secrets

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObjectStorageSecret

func CreateObjectStorageSecret(
	ctx context.Context,
	crudClient client.Client,
	namespace, secretName string,
	id, key string,
) (*corev1.Secret, error)

CreateObjectStorageSecret generates an Opaque Secret with a given ID and Key

func CreateSecretCA

func CreateSecretCA(
	ctx context.Context,
	crudClient client.Client,
	namespace, clusterName, caSecName string,
	includeCAPrivateKey bool,
) (
	*apiv1.Cluster, *certs.KeyPair, error,
)

CreateSecretCA generates a CA for the cluster and return the cluster and the key pair

func GetCredentials

func GetCredentials(
	ctx context.Context,
	crudClient client.Client,
	clusterName, namespace, secretSuffix string,
) (
	string, string, error,
)

GetCredentials retrieve username and password from secrets and return it as per user suffix

Types

This section is empty.

Jump to

Keyboard shortcuts

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