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(lint): update golangci-lint config and fix errors reported by golangci-lint #1537

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

chengfang
Copy link
Contributor

@chengfang chengfang commented Sep 4, 2024

What type of PR is this?
/kind chore

What does this PR do / why we need it:
This PR contains the following changes:

  • updated golangci.yml to remove or replace deprecated linters and obsolete elements;
  • fixed errors reported by golangci-lint golangci-lint has version 1.60.3 built with go1.23.0 from c2e095c on 2024-08-22T21:45:24Z;
  • added nolint: annotation to all usages of the deprecated Grafana field, to keep using this field without warning until this field is fully removed from argocd crd.

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes #?
https://issues.redhat.com/browse/GITOPS-5439

How to test changes / Special notes to the reviewer:

…olangci-lint

Signed-off-by: Cheng Fang <cfang@redhat.com>
@chengfang
Copy link
Contributor Author

chengfang commented Sep 5, 2024

One e2e tested failed in the job "Build and test the operator e2d", but that seems a flaky test and also failed in some other PR.

tests/k8s/1-036_validate_role_rolebinding_for_source_namespace

case.go:254: failed in step 4-soureNamespace_with_wildcard
    case.go:256: rolebindings.rbac.authorization.k8s.io "example-argocd_dev" not found

Copy link
Collaborator

@ishitasequeira ishitasequeira left a comment

Choose a reason for hiding this comment

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

LGTM

@ishitasequeira ishitasequeira merged commit c93f2fe into argoproj-labs:master Sep 6, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants