diff --git a/cmd/kops/create_cluster.go b/cmd/kops/create_cluster.go index 30d08e9451d9c..e8584b3663c32 100644 --- a/cmd/kops/create_cluster.go +++ b/cmd/kops/create_cluster.go @@ -900,7 +900,7 @@ func RunCreateCluster(f *util.Factory, out io.Writer, c *CreateClusterOptions) e for k, data := range sshPublicKeys { err = keyStore.AddSSHPublicKey(k, data) if err != nil { - return fmt.Errorf("error addding SSH public key: %v", err) + return fmt.Errorf("error adding SSH public key: %v", err) } } diff --git a/cmd/kops/update_cluster.go b/cmd/kops/update_cluster.go index 99b24236a6047..826068e67db2a 100644 --- a/cmd/kops/update_cluster.go +++ b/cmd/kops/update_cluster.go @@ -166,7 +166,7 @@ func RunUpdateCluster(f *util.Factory, clusterName string, out io.Writer, c *Upd } err = keyStore.AddSSHPublicKey(fi.SecretNameSSHPrimary, authorized) if err != nil { - return fmt.Errorf("error addding SSH public key: %v", err) + return fmt.Errorf("error adding SSH public key: %v", err) } glog.Infof("Using SSH public key: %v\n", c.SSHPublicKey) diff --git a/examples/kops-api-example/up.go b/examples/kops-api-example/up.go index 28bf41f26978a..7f21d21c2d69e 100644 --- a/examples/kops-api-example/up.go +++ b/examples/kops-api-example/up.go @@ -115,7 +115,7 @@ func up() error { } err = keyStore.AddSSHPublicKey(fi.SecretNameSSHPrimary, pubKey) if err != nil { - return fmt.Errorf("error addding SSH public key: %v", err) + return fmt.Errorf("error adding SSH public key: %v", err) } }