kubehandler

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 8 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, namespace string, owner metav1.Object) (*corev1.Secret, error)

GetOrCreateSecret retrieves a Kubernetes Secret from the cluster. If the secret does not exist, it creates a new one. If the secret exists but has no owner reference, it sets the owner reference and updates the secret.

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