Skip to content

Commit 11d40ca

Browse files
authored
Fix #3421 - can't switch namespaces in helm view (#3438)
1 parent 3740ddd commit 11d40ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/client/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ func (a *APIClient) CanI(ns string, gvr *GVR, name string, verbs []string) (auth
153153
if IsClusterWide(ns) {
154154
ns = BlankNamespace
155155
}
156+
if gvr == HmGVR {
157+
// helm stores release data in secrets
158+
gvr = SecGVR
159+
}
156160
key := makeCacheKey(ns, gvr, name, verbs)
157161
if v, ok := a.cache.Get(key); ok {
158162
if auth, ok = v.(bool); ok {

0 commit comments

Comments
 (0)