Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump golangci-lint to v1.53.2 #4326

Closed
wants to merge 1 commit into from

Conversation

Ankitasw
Copy link
Member

@Ankitasw Ankitasw commented Jun 9, 2023

What type of PR is this?
/kind support

What this PR does / why we need it:
bump golangci-lint to v1.53.2 and fix errors related to that.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:
Comments Originally posted by @richardcase in #4321 (review) addressed. For one of the comments: Originally posted by @Ankitasw in #4321 (comment)

Checklist:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

Release note:

Bump golangci-lint to v1.53.2

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/support Categorizes issue or PR as a support question. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 9, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from ankitasw. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added needs-priority size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 9, 2023
@Ankitasw Ankitasw requested review from richardcase and removed request for shivi28 June 9, 2023 06:58
@Ankitasw Ankitasw force-pushed the golangci-lint-bump branch 2 times, most recently from 8f5e18c to a4af502 Compare June 9, 2023 07:27
@Ankitasw Ankitasw force-pushed the golangci-lint-bump branch from a4af502 to 70b90f3 Compare June 9, 2023 07:34
@Ankitasw
Copy link
Member Author

Ankitasw commented Jun 9, 2023

/test pull-cluster-api-provider-aws-e2e
/test pull-cluster-api-provider-aws-e2e-eks

@Ankitasw
Copy link
Member Author

Ankitasw commented Jun 11, 2023

PR is ready for review.

@Ankitasw Ankitasw mentioned this pull request Jun 13, 2023
4 tasks
@Ankitasw Ankitasw requested a review from dlipovetsky June 19, 2023 14:05
@Ankitasw
Copy link
Member Author

Gentle reminder for review

@@ -214,14 +215,14 @@ func (r *AWSMachinePoolReconciler) reconcileNormal(ctx context.Context, machineP
if !machinePoolScope.Cluster.Status.InfrastructureReady {
machinePoolScope.Info("Cluster infrastructure is not ready yet")
conditions.MarkFalse(machinePoolScope.AWSMachinePool, expinfrav1.ASGReadyCondition, infrav1.WaitingForClusterInfrastructureReason, clusterv1.ConditionSeverityInfo, "")
return ctrl.Result{}, nil
return ctrl.Result{Requeue: true}, nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this returning true now? that would active the rate limiter, wouldn't this be just requeue when a change in the status triggers and event?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done it based on discussion here: #4321 (comment)

}

// Make sure bootstrap data is available and populated
if machinePoolScope.MachinePool.Spec.Template.Spec.Bootstrap.DataSecretName == nil {
machinePoolScope.Info("Bootstrap data secret reference is not yet available")
conditions.MarkFalse(machinePoolScope.AWSMachinePool, expinfrav1.ASGReadyCondition, infrav1.WaitingForBootstrapDataReason, clusterv1.ConditionSeverityInfo, "")
return ctrl.Result{}, nil
return ctrl.Result{RequeueAfter: time.Minute}, nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@enxebre
Copy link
Member

enxebre commented Jun 28, 2023

dropped a few questions lgtm otherwise

@Ankitasw
Copy link
Member Author

Bumping this again, for pending review.

@Ankitasw
Copy link
Member Author

@richardcase can you take a look at this?

@Ankitasw Ankitasw requested review from AverageMarcus and removed request for luthermonson July 24, 2023 13:02
@Ankitasw Ankitasw closed this Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/support Categorizes issue or PR as a support question. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants