MCPcopy
hub / github.com/argoproj/argo-workflows / NewConfigMapCache

Function NewConfigMapCache

workflow/controller/cache/configmap_cache.go:32–39  ·  view source on GitHub ↗
(ns string, ki kubernetes.Interface, n string)

Source from the content-addressed store, hash-verified

30}
31
32func NewConfigMapCache(ns string, ki kubernetes.Interface, n string) MemoizationCache {
33 return &configMapCache{
34 namespace: ns,
35 name: n,
36 kubeClient: ki,
37 lock: sync.RWMutex{},
38 }
39}
40
41func (c *configMapCache) logError(ctx context.Context, err error, fields logging.Fields, message string) {
42 logger := logging.RequireLoggerFromContext(ctx)

Callers 4

TestConfigMapCacheSaveFunction · 0.92
GetCacheMethod · 0.85

Calls

no outgoing calls

Tested by 3

TestConfigMapCacheSaveFunction · 0.74