Versions in this module Expand all Collapse all v0 v0.35.1 Jan 11, 2024 Changes in this version + var GitlabSecretClient coreV1Types.SecretInterface + func CheckForExistingPortForwards(ports ...int) error + func CreateSecretV2(clientset *kubernetes.Clientset, secret *v1.Secret) error + func GetClientConfig(kubeconfigPath string) (*rest.Config, error) + func GetClientSet(kubeconfigPath string) (*kubernetes.Clientset, error) + func GetSecretValue(k8sClient coreV1Types.SecretInterface, secretName, key string) string + func OpenPortForwardPodWrapper(clientset *kubernetes.Clientset, restConfig *rest.Config, podName string, ...) + func PodExecSession(kubeConfigPath string, p *PodSessionOptions, silent bool) error + func PortForwardPod(clientset *kubernetes.Clientset, req PortForwardAPodRequest) error + func PortForwardPodWithRetry(clientset *kubernetes.Clientset, req PortForwardAPodRequest) error + func ReadConfigMapV2(kubeConfigPath string, namespace string, configMapName string) (map[string]string, error) + func ReadSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string) (map[string]string, error) + func ReadService(kubeConfigPath string, namespace string, serviceName string) (*v1.Service, error) + func ReturnDeploymentObject(clientset *kubernetes.Clientset, matchLabel string, matchLabelValue string, ...) (*appsv1.Deployment, error) + func ReturnJobObject(clientset *kubernetes.Clientset, namespace string, jobName string) (*batchv1.Job, error) + func ReturnPodObject(kubeConfigPath string, matchLabel string, matchLabelValue string, ...) (*v1.Pod, error) + func ReturnStatefulSetObject(clientset *kubernetes.Clientset, matchLabel string, matchLabelValue string, ...) (*appsv1.StatefulSet, error) + func VerifyArgoCDReadiness(clientset *kubernetes.Clientset, highAvailabilityEnabled bool, ...) (bool, error) + func WaitForDeploymentReady(clientset *kubernetes.Clientset, deployment *appsv1.Deployment, ...) (bool, error) + func WaitForJobComplete(clientset *kubernetes.Clientset, job *batchv1.Job, timeoutSeconds int64) (bool, error) + func WaitForNamespaceandPods(kubeconfigPath, kubectlClientPath, namespace, podLabel string) + func WaitForPodReady(clientset *kubernetes.Clientset, pod *v1.Pod, timeoutSeconds int) (bool, error) + func WaitForStatefulSetReady(clientset *kubernetes.Clientset, statefulset *appsv1.StatefulSet, ...) (bool, error) + type KubernetesClient struct + Clientset *kubernetes.Clientset + KubeConfigPath string + RestConfig *rest.Config + func CreateKubeConfig(inCluster bool, kubeConfigPath string) *KubernetesClient + func (kcl KubernetesClient) ApplyObjects(namespace string, yamlData [][]byte) error + func (kcl KubernetesClient) KustomizeBuild(kustomizationDirectory string) (*bytes.Buffer, error) + func (kcl KubernetesClient) ReadYAMLFile(filepath string) (string, error) + func (kcl KubernetesClient) SplitYAMLFile(yamlData *bytes.Buffer) ([][]byte, error) + type PatchJson struct + Op string + Path string + type PodSessionOptions struct + Command []string + Namespace string + PodName string + Stderr bool + Stdin bool + Stdout bool + TtyEnabled bool + type PortForwardAPodRequest struct + LocalPort int + Pod v1.Pod + PodPort int + ReadyCh chan struct{} + RestConfig *rest.Config + StopCh <-chan struct{} + type PortForwardAServiceRequest struct + LocalPort int + ReadyCh chan struct{} + RestConfig *rest.Config + Service v1.Service + ServicePort int + StopCh <-chan struct{}