Documentation ¶
Index ¶
- func NSKeyIndexer(obj interface{}) (string, error)
- func NodeNameIndexer() cache.Indexers
- type PodConverter
- func (c *PodConverter) ConvertList(originalList interface{}) (convertedList interface{}, err error)
- func (c *PodConverter) ConvertObject(originalObj interface{}) (convertedObj interface{}, err error)
- func (c *PodConverter) Resource() string
- func (c *PodConverter) ResourceType() runtime.Object
- func (c *PodConverter) StripDownPod(pod *v1.Pod) *v1.Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NSKeyIndexer ¶
NSKeyIndexer is the key function to index the pod object using namespace/name
func NodeNameIndexer ¶
NodeNameIndexer returns indexer to index in the data store using node name
Types ¶
type PodConverter ¶
PodConverter implements the interface to convert k8s pod object to a stripped down version of pod to save on memory utilized
func (*PodConverter) ConvertList ¶
func (c *PodConverter) ConvertList(originalList interface{}) (convertedList interface{}, err error)
ConcertList converts the original pod list to stripped down list of pod objects
func (*PodConverter) ConvertObject ¶
func (c *PodConverter) ConvertObject(originalObj interface{}) (convertedObj interface{}, err error)
ConcertObject converts original pod object to stripped down pod object
func (*PodConverter) ResourceType ¶
func (c *PodConverter) ResourceType() runtime.Object
ResourceType to watch and list
func (*PodConverter) StripDownPod ¶
func (c *PodConverter) StripDownPod(pod *v1.Pod) *v1.Pod
StripDownPod removes all the extra details from pod that are not required by the controller.
Click to show internal directories.
Click to hide internal directories.