Documentation ¶
Index ¶
- func DeleteKubernetesResource(ctx context.Context, client k8sClient.Client, item k8sClient.Object) error
- func DeleteManagedObjects(ctx context.Context, client k8sClient.Client, ...) error
- func GetGitSyncInstanceAnnotation(un *unstructured.Unstructured, key string) (string, error)
- func GetSecret(ctx context.Context, client k8sClient.Client, namespace, secretName string) (*corev1.Secret, error)
- func IsValidKubernetesManifestFile(fileName string) bool
- func IsValidKubernetesNamespace(name string) bool
- func NewKubectl() kube.Kubectl
- func SetGitSyncInstanceAnnotation(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 GetGitSyncInstanceAnnotation ¶
func GetGitSyncInstanceAnnotation(un *unstructured.Unstructured, key string) (string, error)
GetGitSyncInstanceAnnotation returns the application instance name from annotation
func GetSecret ¶
func GetSecret(ctx context.Context, client k8sClient.Client, namespace, secretName string) (*corev1.Secret, error)
GetSecret gets secret using the kubernetes client
func NewKubectl ¶
func SetGitSyncInstanceAnnotation ¶
func SetGitSyncInstanceAnnotation(target *unstructured.Unstructured, key, val string) error
SetGitSyncInstanceAnnotation sets the recommended app.kubernetes.io/instance annotation against an unstructured object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.