From b72c9610f76fcbcdc1cb39b0cef7f1d150e05ceb Mon Sep 17 00:00:00 2001 From: Luke Kingland Date: Wed, 6 Mar 2024 13:54:01 +0900 Subject: [PATCH] fix spelling errors --- cmd/list.go | 4 ++-- pkg/knative/deployer.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/list.go b/cmd/list.go index 71f64bf8a1..cdf14c90db 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -58,9 +58,9 @@ Lists deployed functions. // lister showing functions for all namespaces. // // This also extends to the treatment of the global setting for - // namespace. This is likwise intended for command which require a + // namespace. This is likewise intended for command which require a // namespace no matter what. Therefore the global namespace setting is - // not applicable to this command beacause "deafult" really means "all". + // not applicable to this command because "default" really means "all". // // This is slightly different than other commands wherein their // default is often to presume namespace "default" if none was either diff --git a/pkg/knative/deployer.go b/pkg/knative/deployer.go index 4a39767adb..2ca58bc85f 100644 --- a/pkg/knative/deployer.go +++ b/pkg/knative/deployer.go @@ -47,8 +47,8 @@ type Deployer struct { decorator DeployDecorator } -// ActiveNamespace attempts to read the kubernetes active namepsace. -// Missing configs or not having an active kuberentes configuration are +// ActiveNamespace attempts to read the Kubernetes active namespace. +// Missing configs or not having an active Kubernetes configuration are // equivalent to having no default namespace (empty string). func ActiveNamespace() string { // Get client config, if it exists, and from that the namespace @@ -155,7 +155,7 @@ func (d *Deployer) Deploy(ctx context.Context, f fn.Function) (fn.DeploymentResu namespace = f.Deploy.Namespace } if namespace == "" { - return fn.DeploymentResult{}, fmt.Errorf("deployer requires either a target namespace or that the funciton be already deployed.") + return fn.DeploymentResult{}, fmt.Errorf("deployer requires either a target namespace or that the function be already deployed.") } // Clients