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
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
# airshipctl baremetal %[1]s --name rdm9r3s3

View File

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

View File

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

View File

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

View File

@ -32,7 +32,7 @@ Reboot baremetal hosts
%s
`, selectorsDescription)
rebootExample = fmt.Sprintf(bmhActionExampleTempalte, rebootCommand)
rebootExample = fmt.Sprintf(bmhActionExampleTemplate, rebootCommand)
)
// 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().
WithBundle(helper.PhaseConfigBundle()).
WithClusterctClient(client).
WithClusterctlClient(client).
WithClusterMap(cMap).
WithClusterName(cmd.ClusterName).
WithTempRoot(helper.WorkDir()).

View File

@ -75,15 +75,15 @@ func (b *Builder) WithTempRoot(root string) *Builder {
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
func (b *Builder) WithClusterctClient(c client.Interface) *Builder {
func (b *Builder) WithClusterctlClient(c client.Interface) *Builder {
b.clusterctlClient = c
return b
}
// WithFilesytem allows to set filesystem
func (b *Builder) WithFilesytem(fs fs.FileSystem) *Builder {
// WithFilesystem allows to set filesystem
func (b *Builder) WithFilesystem(fs fs.FileSystem) *Builder {
b.fs = fs
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
// 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.
log.Debugf("Received error while trying kubeconfig source for cluster '%s', source type '%s', error '%v'",
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)
return FromSecret(b.clusterctlClient, &client.GetKubeconfigOptions{
ParentKubeconfigPath: f,

View File

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

View File

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