You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If vela env set has not been used, and a vela command requiring a namespace is used without specifying namespace, then use the namespace from the current KUBECONFIG rather than default.
Example commands would include:
vela status
vela up
vela list
... or any other command which accepts -n | --namesapce
Current behaviour:
$ kubectl config view --minify -o jsonpath='{.contexts[?(@.name == "'$(kubectl config view -o=jsonpath='{.current-context}')'")].context.namespace}'
my-namespace
$ kubeconfig get application
NAME COMPONENT TYPE PHASE HEALTHY STATUS AGE
my.app my.app.component webservice workflowSucceeded true Ready:1/1 44h
$ vela list my.app
APP COMPONENT TYPE TRAITS PHASE HEALTHY STATUS CREATED-TIME
$ vela status my.app
Error: failed to load application my.app from namespace default: applications.core.oam.dev "my.app" not found
Desired behaviour:
$ kubectl config view --minify -o jsonpath='{.contexts[?(@.name == "'$(kubectl config view -o=jsonpath='{.current-context}')'")].context.namespace}'
my-namespace
$ kubeconfig get application
NAME COMPONENT TYPE PHASE HEALTHY STATUS AGE
my.app my.app.component webservice workflowSucceeded true Ready:1/1 44h
$ vela list my.app
APP COMPONENT TYPE TRAITS PHASE HEALTHY STATUS CREATED-TIME
my.app my.app.component webservice gateway workflowSucceeded healthy Ready:1/1 2022-11-22 16:44:15 +0000 GMT
$ vela status my.app
{status output...}
(vela list and vela status find app in kubeconfig current namespace my-namespace)
If
vela env set
has not been used, and avela
command requiring a namespace is used without specifying namespace, then use the namespace from the current KUBECONFIG rather thandefault
.Example commands would include:
vela status
vela up
vela list
-n | --namesapce
Current behaviour:
Desired behaviour:
(
vela list
andvela status
find app in kubeconfig current namespacemy-namespace
)Initially discussed with @wonderflow and @FogDong in this slack thread
The text was updated successfully, but these errors were encountered: