Skip to content

Commit ad7cb45

Browse files
committed
Fix kubeadm typos
1 parent e5bafe2 commit ad7cb45

36 files changed

+55
-55
lines changed

cmd/kubeadm/app/apis/kubeadm/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ type JoinConfiguration struct {
338338
NodeRegistration NodeRegistrationOptions
339339

340340
// CACertPath is the path to the SSL certificate authority used to
341-
// secure comunications between node and control-plane.
341+
// secure communications between node and control-plane.
342342
// Defaults to "/etc/kubernetes/pki/ca.crt".
343343
CACertPath string
344344

cmd/kubeadm/app/apis/kubeadm/v1beta3/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ type JoinConfiguration struct {
322322
NodeRegistration NodeRegistrationOptions `json:"nodeRegistration,omitempty"`
323323

324324
// CACertPath is the path to the SSL certificate authority used to
325-
// secure comunications between node and control-plane.
325+
// secure communications between node and control-plane.
326326
// Defaults to "/etc/kubernetes/pki/ca.crt".
327327
// +optional
328328
CACertPath string `json:"caCertPath,omitempty"`

cmd/kubeadm/app/apis/kubeadm/v1beta4/conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func Convert_v1beta4_JoinConfiguration_To_kubeadm_JoinConfiguration(in *JoinConf
6363
return err
6464
}
6565

66-
// Convert_kubeadm_JoinConfiguration_To_v1beta4_JoinConfiguration converts a private JoinConfinguration to a public JoinCOnfiguration.
66+
// Convert_kubeadm_JoinConfiguration_To_v1beta4_JoinConfiguration converts a private JoinConfiguration to a public JoinConfiguration.
6767
func Convert_kubeadm_JoinConfiguration_To_v1beta4_JoinConfiguration(in *kubeadm.JoinConfiguration, out *JoinConfiguration, s conversion.Scope) error {
6868
err := autoConvert_kubeadm_JoinConfiguration_To_v1beta4_JoinConfiguration(in, out, s)
6969
timeoutControlPlane := kubeadm.GetConversionTimeoutControlPlane() // Remove with v1beta3.

cmd/kubeadm/app/apis/kubeadm/v1beta4/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ type JoinConfiguration struct {
371371
NodeRegistration NodeRegistrationOptions `json:"nodeRegistration,omitempty"`
372372

373373
// CACertPath is the path to the SSL certificate authority used to
374-
// secure comunications between node and control-plane.
374+
// secure communications between node and control-plane.
375375
// Defaults to "/etc/kubernetes/pki/ca.crt".
376376
// +optional
377377
CACertPath string `json:"caCertPath,omitempty"`

cmd/kubeadm/app/apis/kubeadm/validation/validation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ func TestValidateSocketPath(t *testing.T) {
10671067
{name: "valid socket URL", criSocket: kubeadmapiv1.DefaultContainerRuntimeURLScheme + "://" + "/some/path", expectedErrors: false},
10681068
{name: "unsupported URL scheme", criSocket: "bla:///some/path", expectedErrors: true},
10691069
{name: "missing URL scheme", criSocket: "/some/path", expectedErrors: true},
1070-
{name: "unparseable URL", criSocket: ":::", expectedErrors: true},
1070+
{name: "unparsable URL", criSocket: ":::", expectedErrors: true},
10711071
{name: "empty CRISocket", criSocket: "", expectedErrors: true},
10721072
}
10731073
for _, tc := range tests {

cmd/kubeadm/app/cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func newCmdConfig(out io.Writer) *cobra.Command {
5959
Long: fmt.Sprintf(dedent.Dedent(`
6060
There is a ConfigMap in the %s namespace called %q that kubeadm uses to store internal configuration about the
6161
cluster. kubeadm CLI v1.8.0+ automatically creates this ConfigMap with the config used with 'kubeadm init', but if you
62-
initialized your cluster using kubeadm v1.7.x or lower, you must use the 'kubeadm init phase upload-config' command to
62+
initialized your cluster using kubeadm v1.7.x or lower, you must use the 'kubeadm init phase upload-config' command to
6363
create this ConfigMap. This is required so that 'kubeadm upgrade' can configure your upgraded cluster correctly.
6464
`), metav1.NamespaceSystem, constants.KubeadmConfigConfigMap),
6565
// Without this callback, if a user runs just the "upload"

cmd/kubeadm/app/cmd/join.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var (
5959
6060
`)
6161

62-
joinControPlaneDoneTemp = template.Must(template.New("join").Parse(dedent.Dedent(`
62+
joinControlPlaneDoneTemp = template.Must(template.New("join").Parse(dedent.Dedent(`
6363
This node has joined the cluster and a new control plane instance was created:
6464
6565
* Certificate signing request was sent to apiserver and approval was received.
@@ -196,7 +196,7 @@ func newCmdJoin(out io.Writer, joinOptions *joinOptions) *cobra.Command {
196196
"KubeConfigPath": kubeadmconstants.GetAdminKubeConfigPath(),
197197
"etcdMessage": etcdMessage,
198198
}
199-
if err := joinControPlaneDoneTemp.Execute(data.outputWriter, ctx); err != nil {
199+
if err := joinControlPlaneDoneTemp.Execute(data.outputWriter, ctx); err != nil {
200200
return err
201201
}
202202

cmd/kubeadm/app/cmd/phases/init/bootstraptoken.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func runBootstrapToken(c workflow.RunData) error {
8888
return errors.Wrap(err, "error updating or creating token")
8989
}
9090
// Create RBAC rules that makes the bootstrap tokens able to get nodes
91-
if err := nodebootstraptokenphase.AllowBoostrapTokensToGetNodes(client); err != nil {
91+
if err := nodebootstraptokenphase.AllowBootstrapTokensToGetNodes(client); err != nil {
9292
return errors.Wrap(err, "error allowing bootstrap tokens to get Nodes")
9393
}
9494
// Create RBAC rules that makes the bootstrap tokens able to post CSRs

cmd/kubeadm/app/cmd/phases/workflow/phase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type Phase struct {
5454
RunAllSiblings bool
5555

5656
// Run defines a function implementing the phase action.
57-
// It is recommended to implent type assertion, e.g. using golang type switch,
57+
// It is recommended to implement type assertion, e.g. using golang type switch,
5858
// for validating the RunData type.
5959
Run func(data RunData) error
6060

cmd/kubeadm/app/cmd/phases/workflow/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func (e *Runner) Help(cmdUse string) string {
284284
})
285285

286286
// prints the list of phases indented by level and formatted using the maxlength
287-
// the list is enclosed in a mardown code block for ensuring better readability in the public web site
287+
// the list is enclosed in a markdown code block for ensuring better readability in the public web site
288288
line := fmt.Sprintf("The %q command executes the following phases:\n", cmdUse)
289289
line += "```\n"
290290
offset := 2

0 commit comments

Comments
 (0)