Documentation
¶
Index ¶
- func DeleteKubernetesResource(ctx context.Context, client k8sClient.Client, item k8sClient.Object) error
- func DeleteManagedObjects(ctx context.Context, client k8sClient.Client, ...) error
- func GetGitSyncInstanceLabel(un *unstructured.Unstructured, key string) (string, error)
- func GetSecret(ctx context.Context, client k8sClient.Client, namespace, secretName string) (*corev1.Secret, error)
- func GetSecretValue(ctx context.Context, client k8sClient.Client, ...) (string, error)
- func IsValidKubernetesManifestFile(fileName string) bool
- func IsValidKubernetesNamespace(name string) bool
- func NewKubectl() kube.Kubectl
- func SetGitSyncInstanceLabel(target *unstructured.Unstructured, key, val string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 NewKubectl ¶
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.
Click to show internal directories.
Click to hide internal directories.