Documentation ¶
Index ¶
- func GetNodeIP(kubeClient *unversioned.Client, name string) string
- func IsValidSecret(kubeClient unversioned.Interface, name string) (*api.Secret, error)
- func IsValidService(kubeClient unversioned.Interface, name string) (*api.Service, error)
- func ParseNameNS(input string) (string, string, error)
- type PodInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeIP ¶
func GetNodeIP(kubeClient *unversioned.Client, name string) string
GetNodeIP returns the IP address of a node in the cluster
func IsValidSecret ¶
IsValidSecret checks if exists a secret with the specified name
func IsValidService ¶
IsValidService checks if exists a service with the specified 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 *unversioned.Client) (*PodInfo, error)
GetPodDetails returns runtime information about the pod: name, namespace and IP of the node where it is running
Click to show internal directories.
Click to hide internal directories.