podip

package module
v0.0.0-...-a7332f9 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

README

podip

Go package to maintain mapping between named Kubernetes Pods (namespace/name) and their IP address(es)

Documentation

Overview

Package podip provides a utility, mapping between pod IP addresses and a Pod's namespace/name

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Run(stopChannel <-chan struct{}) error
	LookupIP(ip net.IP) (string, string)
	LookupAddr(addr netip.Addr) (string, string)
}

Controller maintains a mapping between IP addresses and Pods

func NewController

func NewController(l logr.Logger, ignoreNamespaces []string) (Controller, error)

NewController returns a new controller using the default kubeconfig (in or out of cluster)

Jump to

Keyboard shortcuts

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