kubehandler

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrCreateSecret

func GetOrCreateSecret(ctx context.Context, kubeClient client.Client, name string, namespace string) (*corev1.Secret, error)

GetOrCreateSecret retrieves a Kubernetes Secret from the cluster. If the secret does not exist, it creates a new one.

func GetSecret

func GetSecret(ctx context.Context, kubeClient client.Client, name string, namespace string) (*corev1.Secret, error)

GetSecret retrieves a Kubernetes Secret from the cluster.

func UpdateSecret

func UpdateSecret(ctx context.Context, kubeClient client.Client, secret *corev1.Secret) error

UpdateSecret updates a Kubernetes Secret in the cluster.

Types

This section is empty.

Jump to

Keyboard shortcuts

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