Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

current namespace is "default" and child errors "Missing namespace" even though it's not missing #751

Open
adietish opened this issue Mar 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@adietish
Copy link
Contributor

Steps:

  1. ASSERT: use minikube
  2. EXEC: apply the following RBAC rules
kubectl apply -f -
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  namespace: default
  name: can-read-pods
rules:
  - apiGroups: [""]
    resources: ["pods"]
    verbs: ["get", "watch", "list"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: read-pods
  namespace: default
subjects:
  - kind: User
    name: user1
    apiGroup: rbac.authorization.k8s.io
roleRef:
  kind: ClusterRole
  name: can-read-pods
  apiGroup: rbac.authorization.k8s.io
  1. EXEC: create a new user context and switch to it
openssl req -new -key user1.key -out user1.csr -subj "/CN=user1/O=group1"
openssl x509 -req -in user1.csr -CA ~/.minikube/ca.crt -CAkey ~/.minikube/ca.key -CAcreateserial -out user1.crt -days 500
kubectl config set-credentials user1 --client-certificate=user1.crt --client-key=user1.key
kubectl config set-context user1-context --cluster=minikube --user=user1
kubectl config use-context user1-context

Result:
Resource tree erroneously shows "default" as current namespaces and "Missing namespace" at the same time.
image

@adietish adietish added the bug Something isn't working label Mar 18, 2024
@sbouchet sbouchet added this to the 1.10.0 milestone Apr 3, 2024
@adietish adietish moved this to 📋 Backlog in IDE Cloudaptors Apr 24, 2024
@sbouchet sbouchet modified the milestones: 1.10.0, 1.11.0 Jun 26, 2024
@sbouchet sbouchet self-assigned this Jul 16, 2024
@sbouchet sbouchet modified the milestones: 1.11.0, 1.12.0 Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants