From 1c4b936af568917ea43339e922b308472a564632 Mon Sep 17 00:00:00 2001 From: Parthvi Vala Date: Tue, 3 Jan 2023 15:27:54 +0530 Subject: [PATCH 1/2] Fix typo in odo remove binding Signed-off-by: Parthvi Vala --- pkg/odo/cli/remove/binding/binding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/odo/cli/remove/binding/binding.go b/pkg/odo/cli/remove/binding/binding.go index 1e5659714a5..2f1ed53a4b1 100644 --- a/pkg/odo/cli/remove/binding/binding.go +++ b/pkg/odo/cli/remove/binding/binding.go @@ -85,7 +85,7 @@ func NewCmdBinding(name, fullName string) *cobra.Command { return genericclioptions.GenericRun(o, cmd, args) }, } - bindingCmd.Flags().String(backend.FLAG_NAME, "", "Name of the Binding to create") + bindingCmd.Flags().String(backend.FLAG_NAME, "", "Name of the Binding to remove") clientset.Add(bindingCmd, clientset.BINDING, clientset.FILESYSTEM) return bindingCmd From e10ecaf0c8b04905d9b3fd06e2f0adcd6264c172 Mon Sep 17 00:00:00 2001 From: Parthvi Vala Date: Tue, 3 Jan 2023 15:30:10 +0530 Subject: [PATCH 2/2] Use add instead of create Signed-off-by: Parthvi Vala --- pkg/odo/cli/add/binding/binding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/odo/cli/add/binding/binding.go b/pkg/odo/cli/add/binding/binding.go index 2a253bdc54b..2c1f8730588 100644 --- a/pkg/odo/cli/add/binding/binding.go +++ b/pkg/odo/cli/add/binding/binding.go @@ -199,7 +199,7 @@ func NewCmdBinding(name, fullName string) *cobra.Command { return genericclioptions.GenericRun(o, cmd, args) }, } - bindingCmd.Flags().String(backend.FLAG_NAME, "", "Name of the Binding to create") + bindingCmd.Flags().String(backend.FLAG_NAME, "", "Name of the Binding to add") bindingCmd.Flags().String(backend.FLAG_WORKLOAD, "", "Name of the workload to bind, only when no devfile is present in current directory") bindingCmd.Flags().String(backend.FLAG_SERVICE, "", "Name of the service to bind") bindingCmd.Flags().String(backend.FLAG_SERVICE_NAMESPACE, "", "Namespace of the service to bind to. Default is the component namespace.")