MCPcopy
hub / github.com/open-policy-agent/gatekeeper / Populated

Method Populated

pkg/readiness/tracker_map.go:124–133  ·  view source on GitHub ↗

Populated returns true if all objectTrackers are populated.

()

Source from the content-addressed store, hash-verified

122
123// Populated returns true if all objectTrackers are populated.
124func (t *trackerMap) Populated() bool {
125 t.mu.RLock()
126 defer t.mu.RUnlock()
127 for _, ot := range t.m {
128 if !ot.Populated() {
129 return false
130 }
131 }
132 return true
133}
134
135// TryCancel will check the readinessRetries left on this GVK, and remove
136// the expectation for its objectTracker if no retries remain.

Callers

nothing calls this directly

Calls 3

RLockMethod · 0.80
RUnlockMethod · 0.80
PopulatedMethod · 0.65

Tested by

no test coverage detected