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