-
Notifications
You must be signed in to change notification settings - Fork 11
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
Don't work if context isn't called "context" #2
Comments
Hey, $ kubesql --query "SELECT default FROM org_name-kube-dev WHERE pod.status.phase = 'Running'" |
@Dentrax yay, it works! would be nice if following could work too P.S. strange, - arent's allowed in identifiers in SQL. Would integer expressions be evaluated in your tool? perhaps we should escape "table names" with ` or |
I see, hyphens are used all across k8s so you are replacing it before SQL parser. Hm, I'm still wondering is it possible to use math operators inside where? |
@Mart-Bogdan Using $ SELECT default FROM current-context, org_name-kube-dev WHERE pod.status.phase = 'Running' ...then we should print from only one context since In my theory, you able to evaluate math operators as long as sqlparser-rs are supported and if field-selectors returns numeric values. But needs some implementations. 🤔 |
Will not work for EKS contexts as they have a '/' inside the name
Supporting double-quoted identifiers will help here. |
I've installed from cargo and tried query from readme
It seems application is trying to find context with name context, not using
current-context
that is set withkubectl config use-context
~/.kube/config
The text was updated successfully, but these errors were encountered: