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

Cleanup and maintenance #102

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

adrianchiris
Copy link
Collaborator

No description provided.

@adrianchiris adrianchiris force-pushed the cleanup-and-maintenance branch 2 times, most recently from 849de73 to e4a2d74 Compare September 5, 2024 15:05
@adrianchiris adrianchiris changed the title Cleanup and maintenance [DNM] Cleanup and maintenance Sep 5, 2024
@coveralls
Copy link

coveralls commented Sep 5, 2024

Pull Request Test Coverage Report for Build 10789116046

Details

  • 19 of 38 (50.0%) changed or added relevant lines in 7 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-39.0%) to 44.214%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/ib-kubernetes/main.go 0 2 0.0%
pkg/drivers/http/client.go 0 6 0.0%
pkg/daemon/daemon.go 0 11 0.0%
Totals Coverage Status
Change from base Build 7622818837: -39.0%
Covered Lines: 512
Relevant Lines: 1158

💛 - Coveralls

@adrianchiris adrianchiris force-pushed the cleanup-and-maintenance branch 2 times, most recently from f6bd8ff to 44db159 Compare September 8, 2024 10:49
@adrianchiris adrianchiris changed the title [DNM] Cleanup and maintenance Cleanup and maintenance Sep 8, 2024
Copy link
Collaborator

@almaslennikov almaslennikov left a comment

Choose a reason for hiding this comment

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

Thank you for the effort! LGTM apart from a couple small comments

.golangci.yml Outdated
gocyclo:
min-complexity: 30
goimports:
local-prefixes: github.com/Mellanox/maintenance-operator
Copy link
Collaborator

Choose a reason for hiding this comment

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

github.com/Mellanox/ib-kubernetes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch !

httpClient.Transport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
} else {
caCertPool := x509.NewCertPool()
caCertPool.AppendCertsFromPEM([]byte(cert))
////nolint:gosec
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does the linter directive work with 4 slashes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well it works :) but i will stick to 2.

- remove un-needed files
- rework makefile (mainly cleanup and usage of go modules and coverage)
- compile plugins with coverage flags so test-coverage will work
- bump go version
- bump golangci-lint version and add linter config
- fix lint issues in code

Signed-off-by: adrianc <[email protected]>
In addition fix image push trigger branch

Signed-off-by: adrianc <[email protected]>
Signed-off-by: adrianc <[email protected]>
current base image was failing on arm64 builds.
we now use debian for build and distroless for the app.

Signed-off-by: adrianc <[email protected]>
@adrianchiris
Copy link
Collaborator Author

adrianchiris commented Sep 10, 2024

@almaslennikov addressed comments.

merging this one once CI is green per your and @rollandf LGTMs.

@adrianchiris adrianchiris merged commit 5cefb59 into Mellanox:master Sep 10, 2024
4 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.

4 participants