k8s

package
v0.0.0-...-1e85a6b Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOnlyIfNotExist

func CreateOnlyIfNotExist(
	ctx context.Context,
	owner metav1.Object,
	c client.Client,
	name, namespace string,
	opts ...k8s_object.ObjectOption,
) (*corev1.Secret, error)

func GetCertificateFromSecretKeySelector

func GetCertificateFromSecretKeySelector(
	ctx context.Context,
	c client.Client,
	namespace string,
	selector *corev1.SecretKeySelector,
) (*x509.Certificate, error)

func GetPrivateKeyFromSecretKeySelector

func GetPrivateKeyFromSecretKeySelector(
	ctx context.Context,
	c client.Client,
	namespace string,
	selector *corev1.SecretKeySelector,
) (*rsa.PrivateKey, error)

func GetValueFromSecretKeySelector

func GetValueFromSecretKeySelector(
	ctx context.Context,
	c client.Client,
	namespace string,
	selector *corev1.SecretKeySelector,
) ([]byte, error)

func Reconcile

func Reconcile(
	ctx context.Context,
	owner metav1.Object,
	c client.Client,
	name, namespace string,
	opts ...k8s_object.ObjectOption,
) (*corev1.Secret, error)

func WithDataWithKey

func WithDataWithKey(key string, value []byte) k8s_object.ObjectOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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