Skip to content

Commit 1faf230

Browse files
committed
Fix lint error for comments
1 parent 1521250 commit 1faf230

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

bootstrap/eks/controllers/eksconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func (r *EKSConfigReconciler) joinWorker(ctx context.Context, cluster *clusterv1
356356
}
357357

358358
// Get AMI ID from AWSManagedMachinePool's launch template if specified
359-
if configOwner.GetKind() == "MachinePool" {
359+
if configOwner.GetKind() == "AWSManagedMachinePool" {
360360
amp := &expinfrav1.AWSManagedMachinePool{}
361361
if err := r.Get(ctx, client.ObjectKey{Namespace: config.Namespace, Name: configOwner.GetName()}, amp); err == nil {
362362
log.Info("Found AWSManagedMachinePool", "name", amp.Name, "launchTemplate", amp.Spec.AWSLaunchTemplate != nil)

bootstrap/eks/internal/userdata/node.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ runcmd:
5151
{{- template "mounts" .Mounts}}
5252
`
5353

54-
// Common MIME header and boundary template
54+
// Common MIME header and boundary template.
5555
mimeHeaderTemplate = `MIME-Version: 1.0
5656
Content-Type: multipart/mixed; boundary="{{.Boundary}}"
5757
5858
`
5959

60-
// Shell script part template for AL2023
60+
// Shell script part template for AL2023.
6161
shellScriptPartTemplate = `--{{.Boundary}}
6262
Content-Type: text/x-shellscript; charset="us-ascii"
6363
@@ -75,7 +75,7 @@ set -o nounset
7575
{{- end}}
7676
{{- end}}`
7777

78-
// Node config part template for AL2023
78+
// Node config part template for AL2023.
7979
nodeConfigPartTemplate = `
8080
--{{.Boundary}}
8181
Content-Type: application/node.eks.aws
@@ -339,7 +339,7 @@ func generateAL2023UserData(input *NodeInput) ([]byte, error) {
339339
var buf bytes.Buffer
340340

341341
// Write MIME header
342-
if _, err := buf.WriteString(fmt.Sprintf("MIME-Version: 1.0\nContent-Type: multipart/mixed; boundary=\"%s\"\n\n", input.Boundary)); err != nil {
342+
if _, err := buf.WriteString(fmt.Sprintf("MIME-Version: 1.0\nContent-Type: multipart/mixed; boundary=%q\n\n", input.Boundary)); err != nil {
343343
return nil, fmt.Errorf("failed to write MIME header: %v", err)
344344
}
345345

@@ -363,7 +363,7 @@ func generateAL2023UserData(input *NodeInput) ([]byte, error) {
363363
return buf.Bytes(), nil
364364
}
365365

366-
// getCapacityTypeString returns the string representation of the capacity type
366+
// getCapacityTypeString returns the string representation of the capacity type.
367367
func (ni *NodeInput) getCapacityTypeString() string {
368368
if ni.CapacityType == nil {
369369
return "ON_DEMAND"
@@ -378,7 +378,7 @@ func (ni *NodeInput) getCapacityTypeString() string {
378378
}
379379
}
380380

381-
// validateAL2023Input validates the input for AL2023 user data generation
381+
// validateAL2023Input validates the input for AL2023 user data generation.
382382
func validateAL2023Input(input *NodeInput) error {
383383
if input.APIServerEndpoint == "" {
384384
return fmt.Errorf("API server endpoint is required for AL2023")

0 commit comments

Comments
 (0)