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

ci: add golangci #44

Merged
merged 2 commits into from
Dec 23, 2021
Merged

ci: add golangci #44

merged 2 commits into from
Dec 23, 2021

Conversation

kaworu
Copy link
Member

@kaworu kaworu commented Dec 9, 2021

Configuration adapted from cilium/hubble.

@kaworu kaworu added the enhancement New feature or request label Dec 9, 2021
@kaworu kaworu self-assigned this Dec 9, 2021
@kaworu kaworu requested review from a team and jrfastab and removed request for a team December 9, 2021 15:13
@kaworu kaworu marked this pull request as draft December 9, 2021 16:33
Signed-off-by: Alexandre Perrin <alex@kaworu.ch>
@kaworu kaworu force-pushed the pr/kaworu/golangci branch 2 times, most recently from 7e4a031 to b2ab400 Compare December 20, 2021 15:54
@kaworu kaworu marked this pull request as ready for review December 20, 2021 16:03
@kaworu kaworu requested review from gandro and rolinh December 20, 2021 16:03
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Thanks a ton for the cleanup!

HubbleServerCertValidityDuration = 3 * 365 * 24 * time.Hour
// HubbleServerCertSecretName is the Kubernetes Secret in which the Hubble
// server certificate is written to.
HubbleServerCertSecretName = "hubble-server-certs" //#nosec
Copy link
Member

Choose a reason for hiding this comment

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

What was the linter complaining about here?

Copy link
Member Author

Choose a reason for hiding this comment

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

If you are asking about the //#nosec, it's because of

internal/defaults/defaults.go:58:2: G101: Potential hardcoded credentials (gosec)
	HubbleServerCertSecretName = "hubble-server-certs"

internal/defaults/defaults.go Outdated Show resolved Hide resolved
And fix complains on the way.

Signed-off-by: Alexandre Perrin <alex@kaworu.ch>
@kaworu kaworu merged commit 3cf8210 into master Dec 23, 2021
@kaworu kaworu deleted the pr/kaworu/golangci branch December 23, 2021 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants