pod

package
v1.8.17 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPodExcepted

func IsPodExcepted(podLabels map[string]string, exceptionList []aadpodid.AzurePodIdentityException) bool

IsPodExcepted returns true if pod label is part of exception crd

Types

type Client

type Client struct {
	PodWatcher informersv1.PodInformer
}

Client represents new pod client

func (*Client) GetPods

func (c *Client) GetPods() ([]*v1.Pod, error)

GetPods returns list of all pods

func (*Client) Start

func (c *Client) Start(exit <-chan struct{})

Start starts watching for any pod-related changes.

type ClientInt

type ClientInt interface {
	GetPods() (pods []*v1.Pod, err error)
	Start(exit <-chan struct{})
}

ClientInt represents pod client interface

func NewPodClient

func NewPodClient(i informers.SharedInformerFactory, eventCh chan aadpodid.EventType) ClientInt

NewPodClient returns new pod client

Jump to

Keyboard shortcuts

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