kubecost / disk-autoscaler

Resize Kubernetes PersistentVolumes automatically based on Kubecost recommendations.
Apache License 2.0
47 stars 1 forks source link

fix golangci-lint issues reported #31

Closed avrodrigues5 closed 4 months ago

avrodrigues5 commented 4 months ago

What does this PR change?

Fixes some golangci-lint complains

Does this PR rely on any other PRs?

No

How does this PR impact users?

None as minor changes on error checking while binding pflag to viper, using io.ReadAll instead of ioutil.ReadAll[DEPRECATED]

Links to Issues or tickets this PR addresses or fixes

Closes #28

What risks are associated with merging this PR? What is required to fully test this PR?

None

How was this PR tested?

Tested it in audit mode, most significant change was the io/util ReadAll function to io.ReadAll and worked fine! Then Ran golangci-lint locally.