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

Update namespace in tooltip for default namespace #191

Open
bfitzpat opened this issue Oct 30, 2019 · 3 comments
Open

Update namespace in tooltip for default namespace #191

bfitzpat opened this issue Oct 30, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@bfitzpat
Copy link
Contributor

From Aurelien on #186

providing the namespace in tooltip and UI of the "current system namespace used" would be useful too (good candidate for next iteration issue/PR)

Right now we only show the namespace if it's set in the user's settings, but it would be nice to get the system default from kubernetes or Camel K and display that as well.

@bfitzpat
Copy link
Contributor Author

bfitzpat commented Nov 7, 2019

looking at https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ it seems we can get the namespace: kubectl get namespace

And we can set it permanently for all subsequent kubectl calls.

kubectl config set-context --current --namespace=<insert-namespace-name-here>
# Validate it
kubectl config view --minify | grep namespace:

Is that what you're after @apupier ?

@apupier
Copy link
Member

apupier commented Nov 7, 2019

On long term, I would like that we use the same logic than what VS Code Kubernetes is doing. I know they can also specify custom kubeconfig in preferences.

this issue was only for the tooltip so that we know the namespace from which the VS Code Camel K view is doing the calls and retrieving the "integrations".

What is used to retrieve the integrations? kubectl? kamel?
if kamel, needs to follow this issue as it is not in phase with what kubectl is doing for now: apache/camel-k#1048 so it can create a desynrrhonization if namespace and integrations are retrieved using a different method.

@bfitzpat
Copy link
Contributor Author

bfitzpat commented Nov 7, 2019

We are using the kubernetes API (k8s.extension.kubectl.v1) to retrieve the list of integrations (see

if (namespace) {
)

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

No branches or pull requests

2 participants