MCPcopy
hub / github.com/derailed/k9s / DebugFactory

Function DebugFactory

internal/watch/helper.go:44–54  ·  view source on GitHub ↗

DebugFactory for debug.

(f *Factory, ns, gvr string)

Source from the content-addressed store, hash-verified

42
43// DebugFactory for debug.
44func DebugFactory(f *Factory, ns, gvr string) {
45 slog.Debug(fmt.Sprintf("----------- DEBUG FACTORY (%s) -------------", gvr))
46 fac, ok := f.factories[ns]
47 if !ok {
48 return
49 }
50 inf := fac.ForResource(toGVR(gvr))
51 for i, k := range inf.Informer().GetStore().ListKeys() {
52 slog.Debug(fmt.Sprintf("%d -- %s", i, k))
53 }
54}

Callers

nothing calls this directly

Calls 2

toGVRFunction · 0.85
ForResourceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…