configmap

package
v0.15.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreConfigMapsEqual

func AreConfigMapsEqual(configMap corev1.ConfigMap, other corev1.ConfigMap) bool

func CreateConfigMap

func CreateConfigMap(scheme *runtime.Scheme, owner metav1.Object, mods ...configMapModifier) (*corev1.ConfigMap, error)

Types

type DataModifier

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

func NewConfigMapDataModifier

func NewConfigMapDataModifier(data map[string]string) DataModifier

func (DataModifier) Enabled

func (mod DataModifier) Enabled() bool

func (DataModifier) Modify

func (mod DataModifier) Modify(configMap *corev1.ConfigMap) error

type Modifier

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

func NewModifier

func NewModifier(name string) Modifier

func (Modifier) Enabled

func (mod Modifier) Enabled() bool

func (Modifier) Modify

func (mod Modifier) Modify(configMap *corev1.ConfigMap) error

type NamespaceModifier

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

func NewNamespaceModifier

func NewNamespaceModifier(namespaceName string) NamespaceModifier

func (NamespaceModifier) Enabled

func (mod NamespaceModifier) Enabled() bool

func (NamespaceModifier) Modify

func (mod NamespaceModifier) Modify(configMap *corev1.ConfigMap) error

type Query

type Query struct {
	query.KubeQuery
}

func NewQuery

func NewQuery(ctx context.Context, kubeClient client.Client, kubeReader client.Reader, log logr.Logger) Query

func (Query) Create

func (query Query) Create(configMap corev1.ConfigMap) error

func (Query) CreateOrUpdate

func (query Query) CreateOrUpdate(configMap corev1.ConfigMap) error

func (Query) Delete

func (query Query) Delete(configMap corev1.ConfigMap) error

func (Query) Get

func (query Query) Get(objectKey client.ObjectKey) (corev1.ConfigMap, error)

func (Query) Update

func (query Query) Update(configMap corev1.ConfigMap) error

Jump to

Keyboard shortcuts

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