k8s

package
Version: v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package k8s contains utilities for Antrea interactions with Kubernetes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClients

CreateClients creates kube clients from the given config.

func CreateLegacyCRDClient

func CreateLegacyCRDClient(config componentbaseconfig.ClientConnectionConfiguration, kubeAPIServerOverride string) (legacycrdclientset.Interface, error)

CreateLegacyCRDClient creates legacyCRD client from the given config.

func GetNodeAddrs added in v1.3.0

func GetNodeAddrs(node *v1.Node) (*ip.DualStackIPs, error)

GetNodeAddrs gets the available IP addresses of a Node. GetNodeAddrs will first try to get the NodeInternalIP, then try to get the NodeExternalIP. If no error is returned, the returned DualStackIPs includes at least one IPv4 or IPv6 address.

func NamespacedName

func NamespacedName(namespace, name string) string

NamespacedName generates the conventional K8s resource name, which connects namespace and name with "/".

Types

This section is empty.

Jump to

Keyboard shortcuts

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