configmaps

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: 6 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 config maps

func NewManager

func NewManager(client client.Client) Manager

NewManager creates new config map manager

func (*Manager) CreateFor

func (m *Manager) CreateFor(configMap *corev1.ConfigMap, vmiCrName types.NamespacedName) error

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

func (*Manager) DeleteFor

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

DeleteFor removes config map created for vmiCrName

func (*Manager) FindFor

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

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

Jump to

Keyboard shortcuts

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