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
Copy file name to clipboardExpand all lines: cmd/components.go
+5-9
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,11 @@ var ComponentsCmd = &cobra.Command{
34
34
Short: "List all Dapr components. Supported platforms: Kubernetes",
35
35
Run: func(cmd*cobra.Command, args []string) {
36
36
ifkubernetesMode {
37
-
print.WarningStatusEvent(os.Stdout, "In future releases, this command will only query the \"default\" namespace by default. Please use the -n (namespace) flag, for specific namespace, or -A (all-namespaces) flag for all namespaces.")
37
+
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.")
38
38
ifallNamespaces {
39
39
resourceNamespace=meta_v1.NamespaceAll
40
40
} elseifresourceNamespace=="" {
41
41
resourceNamespace=meta_v1.NamespaceAll
42
-
print.WarningStatusEvent(os.Stdout, "From next release(or after 2 releases), behavior can be changed to query only \"default\" namespace.")
43
-
}
44
-
ifcomponentsName!="" {
45
-
print.WarningStatusEvent(os.Stdout, "From next release(or after 2 releases), behavior can be changed to treat it as \"namespace\".")
Copy file name to clipboardExpand all lines: cmd/configurations.go
+5-9
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,11 @@ var ConfigurationsCmd = &cobra.Command{
34
34
Short: "List all Dapr configurations. Supported platforms: Kubernetes",
35
35
Run: func(cmd*cobra.Command, args []string) {
36
36
ifkubernetesMode {
37
-
print.WarningStatusEvent(os.Stdout, "In future releases, this command will only query the \"default\" namespace by default. Please use the -n (namespace) flag, for specific namespace, or -A (all-namespaces) flag for all namespaces.")
37
+
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.")
38
38
ifallNamespaces {
39
39
resourceNamespace=meta_v1.NamespaceAll
40
40
} elseifresourceNamespace=="" {
41
41
resourceNamespace=meta_v1.NamespaceAll
42
-
print.WarningStatusEvent(os.Stdout, "From next release(or after 2 releases), behavior can be changed to query only \"default\" namespace.")
43
-
}
44
-
ifconfigurationName!="" {
45
-
print.WarningStatusEvent(os.Stdout, "From next release(or after 2 releases), behavior can be changed to treat it as \"namespace\".")
Copy file name to clipboardExpand all lines: cmd/list.go
+4-5
Original file line number
Diff line number
Diff line change
@@ -61,13 +61,13 @@ var ListCmd = &cobra.Command{
61
61
# List Dapr instances in self-hosted mode
62
62
dapr list
63
63
64
-
# List all namespace Dapr instances in Kubernetes mode
64
+
# List Dapr instances in all namespaces in Kubernetes mode
65
65
dapr list -k
66
66
67
-
# List define namespace Dapr instances in Kubernetes mode
67
+
# List Dapr instances in a specific namespace in Kubernetes mode
68
68
dapr list -k --namespace default
69
69
70
-
# List all namespaces Dapr instances in Kubernetes mode
70
+
# List Dapr instances in all namespaces in Kubernetes mode
71
71
dapr list -k --all-namespaces
72
72
`,
73
73
PreRun: func(cmd*cobra.Command, args []string) {
@@ -78,12 +78,11 @@ dapr list -k --all-namespaces
78
78
},
79
79
Run: func(cmd*cobra.Command, args []string) {
80
80
ifkubernetesMode {
81
-
print.WarningStatusEvent(os.Stdout, "In future releases, this command will only query the \"default\" namespace by default. Please use the -n (namespace) flag, for specific namespace, or -A (all-namespaces) flag for all namespaces.")
81
+
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.")
82
82
ifallNamespaces {
83
83
resourceNamespace=meta_v1.NamespaceAll
84
84
} elseifresourceNamespace=="" {
85
85
resourceNamespace=meta_v1.NamespaceAll
86
-
print.WarningStatusEvent(os.Stdout, "From next release(or after 2 releases), behavior can be changed to query only \"default\" namespace.")
0 commit comments