Description of problem:
When switching between admin and dev accounts in the web console, last namespace used persists and causes errors to show in the dev view if the dev account lacks permissions to the last viewed namespace seen by the admin.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Log in as admin, view, for instance, default or all-namespaces namespace
2. Log out and back in as developer account
3. Try to view resources from the left hand panel, e.g. Pods
Technical error page:
You don't have access to this section due to cluster policy.
Danger alert:Error details
pods is forbidden: User "mydev" cannot list resource "pods" in API group "" in the namespace "default"
Redirection to first choose a namespace available to the user, or error message directing the user to choose a namespace first.
Jira tracking ticket for planning purposes: https://issues.redhat.com/browse/ODC-5043
Pushing to 4.8 as we lack the bandwidth to address in 4.7.
Was addressed by adding Persistent Storage in a ConfigMap for the user.
4.7 Epic: https://issues.redhat.com/browse/ODC-4370