secrets

package
v0.0.0-...-00d472e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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"
	// TLSSecret is the name of the TLS secret that servica-ca-operator creates
	TLSSecret = "windows-machine-config-operator-tls"
)

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