k8s

package
v0.13.10 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabelToNode added in v0.13.0

func AddLabelToNode(nodeName, key, value string, cs clientset.Interface)

func ApplyLabelsToNamespace added in v0.13.10

func ApplyLabelsToNamespace(cs clientset.Interface, name string, labels map[string]string) error

func CreateConfigmap added in v0.13.10

func CreateConfigmap(cs clientset.Interface, name, namespace string, data map[string]string) error

func CreateNamespace added in v0.13.10

func CreateNamespace(cs clientset.Interface, name string, labels map[string]string, options ...func(*corev1.Namespace)) error

func DeleteNamespace added in v0.13.10

func DeleteNamespace(cs clientset.Interface, name string) error

func DescribeSvc

func DescribeSvc(ns string)

DescribeSvc logs the output of kubectl describe svc for the given namespace.

func DumpInfo added in v0.13.0

func DumpInfo(reporter *k8sreporter.KubernetesReporter, testName string)

func GetSvcNode added in v0.13.6

func GetSvcNode(cs clientset.Interface, svcNS string, svcName string, allNodes *corev1.NodeList) (*corev1.Node, error)

GetSvcNode returns the node that the LB Service announcing from.

func InitReporter added in v0.13.0

func InitReporter(kubeconfig, path, namespace string) *k8sreporter.KubernetesReporter

func NodeIPsForFamily

func NodeIPsForFamily(nodes []v1.Node, family ipfamily.Family, vrfName string) ([]string, error)

func PodLogs

func PodLogs(cs clientset.Interface, pod *corev1.Pod, podLogOpts corev1.PodLogOptions) (string, error)

func PodLogsSinceTime

func PodLogsSinceTime(cs clientset.Interface, pod *corev1.Pod, speakerContainerName string, sinceTime *metav1.Time) (string, error)

func RemoveConfigmap added in v0.13.10

func RemoveConfigmap(cs clientset.Interface, name, namespace string) error

func RemoveLabelFromNode added in v0.13.0

func RemoveLabelFromNode(nodeName, key string, cs clientset.Interface)

func SelectorsForNodes added in v0.13.0

func SelectorsForNodes(nodes []v1.Node) []metav1.LabelSelector

func SetNodeCondition added in v0.13.10

func SetNodeCondition(cs clientset.Interface, nodeName string, conditionType v1.NodeConditionType, status v1.ConditionStatus) error

SetNodeCondition sets the node's condition to the desired status and validates that the change is applied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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