pods

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager provides operations on Pods

func NewManager

func NewManager(client client.Client) Manager

NewManager creates new Pod manager

func (*Manager) CreateFor

func (m *Manager) CreateFor(pod *corev1.Pod, vmiCrName types.NamespacedName) error

CreateFor creates given Pod, overriding given Name with a generated one. The Pod will be associated with vmiCrName.

func (*Manager) DeleteFor

func (m *Manager) DeleteFor(vmiCrName types.NamespacedName) error

DeleteFor removes the Pod created for vmiCrName

func (*Manager) FindFor

func (m *Manager) FindFor(vmiCrName types.NamespacedName) (*corev1.Pod, error)

FindFor retrieves a Pod matching given labels. If none can be found, both error and pointer will be nil. When there is more than 1 matching Pod, error will be returned.

Jump to

Keyboard shortcuts

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