Fix typos in various files

Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Change-Id: Ibe0066e74497c3caecc50e1187abd0bde7955b04
This commit is contained in:
bijayasharma 2021-04-16 09:36:22 -04:00 committed by Bijaya Sharma
parent fcfad3533a
commit e9179ff018
9 changed files with 15 additions and 15 deletions

View File

@ -51,7 +51,7 @@ var (
based on the --%s, --%s and --%s flags provided. If no flags are based on the --%s, --%s and --%s flags provided. If no flags are
provided airshipctl will try to select all baremetal hosts in the inventory`, flagName, flagNamespace, flagLabel) provided airshipctl will try to select all baremetal hosts in the inventory`, flagName, flagNamespace, flagLabel)
bmhActionExampleTempalte = ` bmhActionExampleTemplate = `
Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found Perform action against hosts with name rdm9r3s3 in all namespaces where the host is found
# airshipctl baremetal %[1]s --name rdm9r3s3 # airshipctl baremetal %[1]s --name rdm9r3s3

View File

@ -32,7 +32,7 @@ Eject media attached to a baremetal hosts
%s %s
`, selectorsDescription) `, selectorsDescription)
ejectMediaExample = fmt.Sprintf(bmhActionExampleTempalte, ejectMediaCommand) ejectMediaExample = fmt.Sprintf(bmhActionExampleTemplate, ejectMediaCommand)
) )
// NewEjectMediaCommand provides a command to eject media attached to a baremetal host. // NewEjectMediaCommand provides a command to eject media attached to a baremetal host.

View File

@ -32,7 +32,7 @@ Power off baremetal hosts
%s %s
`, selectorsDescription) `, selectorsDescription)
powerOffExample = fmt.Sprintf(bmhActionExampleTempalte, powerOffCommand) powerOffExample = fmt.Sprintf(bmhActionExampleTemplate, powerOffCommand)
) )
// NewPowerOffCommand provides a command to shutdown a remote host. // NewPowerOffCommand provides a command to shutdown a remote host.

View File

@ -32,7 +32,7 @@ Power on baremetal hosts
%s %s
`, selectorsDescription) `, selectorsDescription)
powerOnExample = fmt.Sprintf(bmhActionExampleTempalte, powerOnCommand) powerOnExample = fmt.Sprintf(bmhActionExampleTemplate, powerOnCommand)
) )
// NewPowerOnCommand provides a command with the capability to power on baremetal hosts. // NewPowerOnCommand provides a command with the capability to power on baremetal hosts.

View File

@ -32,7 +32,7 @@ Reboot baremetal hosts
%s %s
`, selectorsDescription) `, selectorsDescription)
rebootExample = fmt.Sprintf(bmhActionExampleTempalte, rebootCommand) rebootExample = fmt.Sprintf(bmhActionExampleTemplate, rebootCommand)
) )
// NewRebootCommand provides a command with the capability to reboot baremetal hosts. // NewRebootCommand provides a command with the capability to reboot baremetal hosts.

View File

@ -85,7 +85,7 @@ func (cmd *GetKubeconfigCommand) RunE(cfgFactory config.Factory, writer io.Write
kubeconf := kubeconfig.NewBuilder(). kubeconf := kubeconfig.NewBuilder().
WithBundle(helper.PhaseConfigBundle()). WithBundle(helper.PhaseConfigBundle()).
WithClusterctClient(client). WithClusterctlClient(client).
WithClusterMap(cMap). WithClusterMap(cMap).
WithClusterName(cmd.ClusterName). WithClusterName(cmd.ClusterName).
WithTempRoot(helper.WorkDir()). WithTempRoot(helper.WorkDir()).

View File

@ -75,15 +75,15 @@ func (b *Builder) WithTempRoot(root string) *Builder {
return b return b
} }
// WithClusterctClient this is used if u want to inject your own clusterctl // WithClusterctlClient this is used if u want to inject your own clusterctl
// mostly needed for tests // mostly needed for tests
func (b *Builder) WithClusterctClient(c client.Interface) *Builder { func (b *Builder) WithClusterctlClient(c client.Interface) *Builder {
b.clusterctlClient = c b.clusterctlClient = c
return b return b
} }
// WithFilesytem allows to set filesystem // WithFilesystem allows to set filesystem
func (b *Builder) WithFilesytem(fs fs.FileSystem) *Builder { func (b *Builder) WithFilesystem(fs fs.FileSystem) *Builder {
b.fs = fs b.fs = fs
return b return b
} }
@ -164,7 +164,7 @@ func (b *Builder) buildOne(clusterID string) (string, *api.Config, error) {
} }
// if error, log it and ignore it. missing problem with one kubeconfig should not // if error, log it and ignore it. missing problem with one kubeconfig should not
// effect other clusters, which don't depend on it. If they do depend on it, their calls // effect other clusters, which don't depend on it. If they do depend on it, their calls
// will fail because the context will be missing. Combitation with a log message will make // will fail because the context will be missing. Combination with a log message will make
// it clear where the problem is. // it clear where the problem is.
log.Debugf("Received error while trying kubeconfig source for cluster '%s', source type '%s', error '%v'", log.Debugf("Received error while trying kubeconfig source for cluster '%s', source type '%s', error '%v'",
clusterID, source.Type, sourceErr) clusterID, source.Type, sourceErr)
@ -225,7 +225,7 @@ func (b *Builder) fromClusterAPI(clusterName string, ref v1alpha1.KubeconfigSour
} }
} }
log.Debugf("Getting child kubeconfig from parent, parent context '%s', parent kubeconfing '%s'", log.Debugf("Getting child kubeconfig from parent, parent context '%s', parent kubeconfig '%s'",
parentContext, f) parentContext, f)
return FromSecret(b.clusterctlClient, &client.GetKubeconfigOptions{ return FromSecret(b.clusterctlClient, &client.GetKubeconfigOptions{
ParentKubeconfigPath: f, ParentKubeconfigPath: f,

View File

@ -263,8 +263,8 @@ func TestBuilderClusterctl(t *testing.T) {
WithClusterName(tt.requestedClusterName). WithClusterName(tt.requestedClusterName).
WithBundle(testBundle). WithBundle(testBundle).
WithTempRoot(tt.tempRoot). WithTempRoot(tt.tempRoot).
WithClusterctClient(tt.clusterctlClient). WithClusterctlClient(tt.clusterctlClient).
WithFilesytem(tt.fs). WithFilesystem(tt.fs).
Build() Build()
require.NotNil(t, kube) require.NotNil(t, kube)
filePath, cleanup, err := kube.GetFile() filePath, cleanup, err := kube.GetFile()

View File

@ -99,7 +99,7 @@ func (p *phase) Executor() (ifc.Executor, error) {
WithBundle(p.helper.PhaseConfigBundle()). WithBundle(p.helper.PhaseConfigBundle()).
WithClusterMap(cMap). WithClusterMap(cMap).
WithTempRoot(p.helper.WorkDir()). WithTempRoot(p.helper.WorkDir()).
WithClusterctClient(cctlClient). WithClusterctlClient(cctlClient).
Build() Build()
return executorFactory( return executorFactory(