k8s

package
v0.0.0-...-42351fe Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsNetworkingIngressAvailable bool

IsNetworkingIngressAvailable indicates if package "k8s.io/api/networking/v1beta1" is available or not

Functions

func GetNodeIPOrName

func GetNodeIPOrName(kubeClient clientset.Interface, name string, useInternalIP bool) string

GetNodeIPOrName returns the IP address or the name of a node in the cluster

func MetaNamespaceKey

func MetaNamespaceKey(obj interface{}) string

MetaNamespaceKey knows how to make keys for API objects which implement meta.Interface.

func NetworkingIngressAvailable

func NetworkingIngressAvailable(client clientset.Interface) bool

NetworkingIngressAvailable checks if the package "k8s.io/api/networking/v1beta1" is available or not

func ParseNameNS

func ParseNameNS(input string) (string, string, error)

ParseNameNS parses a string searching a namespace and name

Types

type PodInfo

type PodInfo struct {
	Name      string
	Namespace string
	// Labels selectors of the running pod
	// This is used to search for other Ingress controller pods
	Labels map[string]string
}

PodInfo contains runtime information about the pod running the Ingres controller

func GetPodDetails

func GetPodDetails(kubeClient clientset.Interface) (*PodInfo, error)

GetPodDetails returns runtime information about the pod: name, namespace and IP of the node where it is running

Jump to

Keyboard shortcuts

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