configmap

package
v0.2.2-beta Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package configmap provides utilities for synchronizing ConfigMap data with local storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncConfigMapToStore

func SyncConfigMapToStore(configMap *corev1.ConfigMap, store *kvstore.Store) error

SyncConfigMapToStore syncs a native Kubernetes ConfigMap (key-value format) to kvstore. Each key-value pair in configMap.Data is directly copied to the store. This function is designed for use in reconcile loops across the operator ecosystem.

Returns error if configMap or store is nil.

func WriteConfigMapData

func WriteConfigMapData(configMap *corev1.ConfigMap, data map[string]string) error

WriteConfigMapData writes a map of key-value pairs to a ConfigMap's Data field. This function is the counterpart to SyncConfigMapToStore, ensuring compatibility across the operator ecosystem.

Returns error if configMap or data is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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