Documentation ¶
Overview ¶
Package k8sapi contains logic to retrieve pods running on local node
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKubeClient ¶
func CreateKubeClient() (kubernetes.Interface, error)
CreateKubeClient creates a k8s client
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller defines global context for discovery controller
func NewController ¶
func NewController(clientset kubernetes.Interface) *Controller
NewController creates a new DiscoveryController
func (*Controller) DiscoverCNIK8SPods ¶ added in v1.6.1
func (d *Controller) DiscoverCNIK8SPods()
DiscoverCNIK8SPods discovers CNI pods, aws-node, running in the cluster
func (*Controller) DiscoverK8SPods ¶
func (d *Controller) DiscoverK8SPods(podListWatcher *cache.ListWatch)
DiscoverK8SPods takes a watcher and updates the Controller cache
func (*Controller) GetCNIPods ¶ added in v1.5.0
func (d *Controller) GetCNIPods() []string
GetCNIPods return the list of CNI pod names
func (*Controller) GetPod ¶ added in v1.6.4
func (d *Controller) GetPod(podName, namespace string) (*v1.Pod, error)
func (*Controller) SetNodeLabel ¶ added in v1.6.4
func (d *Controller) SetNodeLabel(key, value string) error
Click to show internal directories.
Click to hide internal directories.