File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -300,10 +300,11 @@ func (c *clusterCache) GetServerVersion() string {
300
300
}
301
301
302
302
// GetAPIResources returns information about observed API resources
303
+ // This method is called frequently during reconciliation to pass API resource info to `helm template`
304
+ // NOTE: we do not provide any consistency guarantees about the returned list. The list might be
305
+ // updated in place (anytime new CRDs are introduced or removed). If necessary, a separate method
306
+ // would need to be introduced to return a copy of the list so it can be iterated consistently.
303
307
func (c * clusterCache ) GetAPIResources () []kube.APIResourceInfo {
304
- c .lock .RLock ()
305
- defer c .lock .RUnlock ()
306
-
307
308
return c .apiResources
308
309
}
309
310
You can’t perform that action at this time.
0 commit comments