secret

package
v0.0.0-...-4d19ac6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// RootCASecretName is the name for RootCA secret
	RootCASecretName = "root-ca"
	// APIServerCASecretName name of APIServerCA secret
	APIServerCASecretName = "apiserver-ca"
	// ETCDCASecretName name of ETCDCa secret
	ETCDCASecretName = "etcd-ca"
	// FrontProxyCASecretName name of FrontProxyCA secret
	FrontProxyCASecretName = "front-proxy-ca"
	// ControllerManagerSecretName name of ControllerManager kubeconfig secret
	ControllerManagerSecretName = "controller-manager-kubeconfig"
	// AdminSecretName name of secret with kubeconfig for admin
	AdminSecretName = "admin-kubeconfig" // #nosec G101 -- This is a path to secrets
	// ServiceAccountSecretName name of the secret with ServiceAccount rsa
	ServiceAccountSecretName = "serviceaccount-rsa"
)

Variables

This section is empty.

Functions

func CrtKeyPairToSecret

func CrtKeyPairToSecret(name, namespace string, ckp *vcpki.CrtKeyPair) *corev1.Secret

CrtKeyPairToSecret encapsulates ca/key pair ckp into a secret object

func GetHash

func GetHash(o interface{}) string

GetHash hashes object to sha256 for annotations

func KubeconfigToSecret

func KubeconfigToSecret(name, namespace string, cfgContent string) *corev1.Secret

KubeconfigToSecret encapsulates kubeconfig cfgContent into a secret object

func RsaKeyToSecret

func RsaKeyToSecret(name, namespace string, rsaKey *rsa.PrivateKey) (*corev1.Secret, error)

RsaKeyToSecret encapsulates rsaKey into a secret object

Types

This section is empty.

Jump to

Keyboard shortcuts

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