Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PodResourceManager ¶
type PodResourceManager interface { // WatchPod keeps track of resources related to the passed Pod. Watch(pod *corev1.Pod) // UnwatchPod stops tracking resources related to the passed Pod. Unwatch(pod *corev1.Pod) // EventHandlerFuncs sets up the event handlers for the watched resources. // EventHandlerFuncs sets up the event handlers for the watched resources. EventHandlerFuncs(ctx context.Context, updater ResourceUpdater) cache.ResourceEventHandlerFuncs // ConfigMapLister lists ConfigMap resources. ConfigMapLister() listersv1.ConfigMapLister // SecretLister lists Secret resources. SecretLister() listersv1.SecretLister }
PodResourceManager provides list and watch for Pods' related ConfigMaps and Secrets.
func NewPodResourceWatcher ¶
func NewPodResourceWatcher(informerFactory informers.SharedInformerFactory) PodResourceManager
type ResourceUpdater ¶
type ResourceUpdater interface { // UpdateConfigMap handles a ConfigMap update. UpdateConfigMap(ctx context.Context, pod *corev1.Pod, configMap *corev1.ConfigMap) error // UpdateSecret handles a Secret update. UpdateSecret(ctx context.Context, pod *corev1.Pod, secret *corev1.Secret) error }
The ResourceUpdater handles events for a ConfigMap of Secret referenced by a known Pod. This is meant to be implemented by a Provider implementation.
Click to show internal directories.
Click to hide internal directories.