kubernetes

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKubernetesResource

func DeleteKubernetesResource(ctx context.Context, client k8sClient.Client, item k8sClient.Object) error

func DeleteManagedObjects

func DeleteManagedObjects(ctx context.Context, client k8sClient.Client, objs map[kube.ResourceKey]*unstructured.Unstructured) error

DeleteManagedObjects deletes Kubernetes resources from a map sequentially, returning an error if any deletion fails.

func GetGitSyncInstanceLabel added in v0.2.0

func GetGitSyncInstanceLabel(un *unstructured.Unstructured, key string) (string, error)

GetGitSyncInstanceLabel returns the application instance name from label

func GetSecret

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

GetSecret gets secret using the kubernetes client

func GetSecretValue added in v0.1.2

func GetSecretValue(ctx context.Context, client k8sClient.Client, secretKeySelector v1alpha1.SecretKeySelector) (string, error)

func IsValidKubernetesManifestFile

func IsValidKubernetesManifestFile(fileName string) bool

func IsValidKubernetesNamespace

func IsValidKubernetesNamespace(name string) bool

func NewKubectl

func NewKubectl() kube.Kubectl

func SetGitSyncInstanceLabel added in v0.2.0

func SetGitSyncInstanceLabel(target *unstructured.Unstructured, key, val string) error

SetGitSyncInstanceLabel sets the recommended app.kubernetes.io/instance label against an unstructured object

Types

This section is empty.

Jump to

Keyboard shortcuts

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