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

Determine openebs ns from the CLI. #18

Closed
Abhinandan-Purkait opened this issue May 20, 2021 · 3 comments · Fixed by #21
Closed

Determine openebs ns from the CLI. #18

Abhinandan-Purkait opened this issue May 20, 2021 · 3 comments · Fixed by #21
Assignees

Comments

@Abhinandan-Purkait
Copy link
Member

We might need to rethink out K8sClient structure, as of now there are two candidates for similar resource fields

  • namespace i.e. resource namespace for user created resources like pvc, pod, etc
  • openebs-namespace i.e. the namespace where a specific Storage engine is installed

The -n flag is used to take the pvc namespace and same cannot be used to take the openebs namespace simultaneously.
Determining the openebs ns from the cli would help here.

@Abhinandan-Purkait Abhinandan-Purkait self-assigned this May 20, 2021
@kmova
Copy link
Member

kmova commented May 20, 2021

  • Check with ClusterRoleBinding or ServiceAccountName ( existence of openebs.io in labels)
  • Consider the possibility of jiva and openebs in different namespaces

@vharsh
Copy link
Member

vharsh commented May 20, 2021

Final verdict: Lets stick to figuring out the namespace by using the openebs.io/component-type label KVs present on the CSI controller.

There might be some really old versions of OpenEBS(e.g. 2.1) which might not support this as the CSI controller pods are running in the kube-system namespace.

@Abhinandan-Purkait
Copy link
Member Author

We are tracking our approach and questionnaires in the respective document.
https://docs.google.com/document/d/1Zi8rPPWsxzpfTZrCScwoT4sAV_QSySMh2tjrpeKMqkE/edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants