secrets

package
v0.0.0-...-e561cac Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UserDataSecret is the name of the userData secret that WMCO creates
	UserDataSecret = "windows-user-data"
	// PrivateKeySecret is the name of the private key secret provided by the user
	PrivateKeySecret = "cloud-private-key"
	// PrivateKeySecretKey is the key within the private key secret which holds the private key
	PrivateKeySecretKey = "private-key.pem"
)

Variables

This section is empty.

Functions

func GenerateServiceAccountTokenSecret

func GenerateServiceAccountTokenSecret(namespace, serviceAccountName string) *core.Secret

GenerateServiceAccountTokenSecret returns a pointer to a secret with the given name and namespace with ServiceAccountToken type and the given serviceAccountName as the annotation

func GenerateUserData

func GenerateUserData(platformType oconfig.PlatformType, publicKey ssh.PublicKey) (*core.Secret, error)

GenerateUserData generates the desired value of userdata secret.

func GetPrivateKey

func GetPrivateKey(secret kubeTypes.NamespacedName, c client.Client) ([]byte, error)

GetPrivateKey fetches the specified secret and extracts the private key data

Types

This section is empty.

Jump to

Keyboard shortcuts

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