k8s

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeIP

func GetNodeIP(kubeClient clientset.Interface, name string) string

GetNodeIP returns the IP address of a node in the cluster

func IsValidConfigMap

func IsValidConfigMap(kubeClient clientset.Interface, fullName string) (*api.ConfigMap, error)

IsValidConfigMap check if exists a configmap with the specified name

func IsValidNamespace

func IsValidNamespace(kubeClient clientset.Interface, name string) (*api.Namespace, error)

IsValidNamespace chck if exists a namespace with the specified name

func IsValidSecret

func IsValidSecret(kubeClient clientset.Interface, name string) (*api.Secret, error)

IsValidSecret checks if exists a secret with the specified name

func IsValidService

func IsValidService(kubeClient clientset.Interface, name string) (*api.Service, error)

IsValidService checks if exists a service with the specified name

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
	NodeIP    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