kubernetes: k8s.io/kubernetes/pkg/kubelet/configmap Index | Files

package configmap

import "k8s.io/kubernetes/pkg/kubelet/configmap"


Package Files

configmap_manager.go fake_manager.go

type Manager Uses

type Manager interface {
    // Get configmap by configmap namespace and name.
    GetConfigMap(namespace, name string) (*v1.ConfigMap, error)

    // RegisterPod registers all configmaps from a given pod.
    RegisterPod(pod *v1.Pod)

    // UnregisterPod unregisters configmaps from a given pod that are not
    // used by any other registered pod.
    UnregisterPod(pod *v1.Pod)

Manager interface provides methods for Kubelet to manage ConfigMap.

func NewCachingConfigMapManager Uses

func NewCachingConfigMapManager(kubeClient clientset.Interface, getTTL manager.GetObjectTTLFunc) Manager

NewCachingConfigMapManager creates a manager that keeps a cache of all configmaps necessary for registered pods. It implement the following logic: - whenever a pod is create or updated, the cached versions of all configmaps

are invalidated

- every GetObject() call tries to fetch the value from local cache; if it is

not there, invalidated or too old, we fetch it from apiserver and refresh the
value in cache; otherwise it is just fetched from cache

func NewFakeManager Uses

func NewFakeManager() Manager

NewFakeManager creates empty/fake ConfigMap manager

func NewSimpleConfigMapManager Uses

func NewSimpleConfigMapManager(kubeClient clientset.Interface) Manager

NewSimpleConfigMapManager creates a new ConfigMapManager instance.

func NewWatchingConfigMapManager Uses

func NewWatchingConfigMapManager(kubeClient clientset.Interface) Manager

NewWatchingConfigMapManager creates a manager that keeps a cache of all configmaps necessary for registered pods. It implements the following logic: - whenever a pod is created or updated, we start individual watches for all

referenced objects that aren't referenced from other registered pods

- every GetObject() returns a value from local cache propagated via watches

Package configmap imports 12 packages (graph) and is imported by 22 packages. Updated 2019-08-11. Refresh now. Tools for package owners.