You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
gk := key.GroupVersionKind().GroupKind()
var gvr schema.GroupVersionResource
v, ok := d.gvrCache.Load(gk)
if !ok {
gvr, _, err := d.client.Resource(gk) // **THIS LINE IS WRONG**: declares and assigns a new object
if err != nil {
return schema.GroupVersionResource{}, err
}
What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)
https://github.com/vmware-tanzu/octant/blob/master/internal/objectstore/dynamic_cache.go#L487
func (d *DynamicCache) gvrFromKey(ctx context.Context, key store.Key) (schema.GroupVersionResource, error) {
...
...
}
What did you expect to happen:
https://github.com/vmware-tanzu/octant/blob/master/internal/objectstore/dynamic_cache.go#L487
func (d *DynamicCache) gvrFromKey(ctx context.Context, key store.Key) (schema.GroupVersionResource, error) {
...
...
}
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
octant version
): masterkubectl version
): v1.23.1The text was updated successfully, but these errors were encountered: