Fix #3421 - can't switch namespaces in helm view (#3438)

mine
Maurizio Pasquinelli 2025-07-13 17:52:48 +02:00 committed by GitHub
parent 3740ddd825
commit 11d40cab57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ func (a *APIClient) CanI(ns string, gvr *GVR, name string, verbs []string) (auth
if IsClusterWide(ns) {
ns = BlankNamespace
}
if gvr == HmGVR {
// helm stores release data in secrets
gvr = SecGVR
}
key := makeCacheKey(ns, gvr, name, verbs)
if v, ok := a.cache.Get(key); ok {
if auth, ok = v.(bool); ok {