-
Notifications
You must be signed in to change notification settings - Fork 207
Open
Labels
P1area/clikind/bugSomething isn't workingSomething isn't workingtriaged/resolvedThe issue has been triagedThe issue has been triaged
Milestone
Description
When using the list command(and others it seems) always print the warning.
This makes it very hard to programatically do things based on for instance json output, since the json output is not valid json due to the warning that is always printed, introducing parsing logic for the warning before working with the json output.
➜ k8s git:(main) ✗ dapr list -k --namespace default -o json
⚠ In future releases, this command will only query the "default" namespace by default. Please use the --namespace flag for a specific namespace, or the --all-namespaces (-A) flag for all namespaces.
{
"namespace": "default",
"appId": "bakery",
"appPort": "8080",
"age": "16h",
"created": "2022-06-29 18:01.58"
}SyntaxError: Unexpected token ⚠ in JSON at position 0
Suggestion: If namespace is provided to the command, or json output requested, disable the warning from printing.
Or add a flag to disable the warning (--no-warning) or similar.
Line 81 in ce0af7c
| print.WarningStatusEvent(os.Stdout, "In future releases, this command will only query the \"default\" namespace by default. Please use the --namespace flag for a specific namespace, or the --all-namespaces (-A) flag for all namespaces.") |
pravinpushkar and FlorentATo
Metadata
Metadata
Assignees
Labels
P1area/clikind/bugSomething isn't workingSomething isn't workingtriaged/resolvedThe issue has been triagedThe issue has been triaged