utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultKubeconfigPath

func DefaultKubeconfigPath() string

func GetNamespaces

func GetNamespaces(namespace string) []string

func PrintConfigMapTable

func PrintConfigMapTable(clusterName string, configMaps []v1.ConfigMap)

func PrintDeploymentTable

func PrintDeploymentTable(clusterName string, deployments []appsv1.Deployment)

func PrintIngressTable

func PrintIngressTable(clusterName string, ingresses []networkingv1.Ingress)

func PrintNamespaceTable

func PrintNamespaceTable(clusterName string, namespaces []v1.Namespace)

func PrintNodeTable

func PrintNodeTable(clusterName string, nodes []v1.Node)

func PrintPodLogs

func PrintPodLogs(clusterName, namespace, podName string, logs io.ReadCloser, follow bool)

func PrintPodTable

func PrintPodTable(clusterName string, pods []v1.Pod, statusFilter string)

func PrintSecretTable

func PrintSecretTable(clusterName string, secrets []v1.Secret)

func PrintServiceTable

func PrintServiceTable(clusterName string, services []v1.Service)

func SetConfigDefault

func SetConfigDefault() string

func ValidateConfig

func ValidateConfig(cmd *cobra.Command, configFlagName, envVarName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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