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

vpa: Follow golang guidelines for error strings #6906

Open
ialidzhikov opened this issue Jun 7, 2024 · 5 comments
Open

vpa: Follow golang guidelines for error strings #6906

ialidzhikov opened this issue Jun 7, 2024 · 5 comments
Assignees
Labels
area/vertical-pod-autoscaler kind/feature Categorizes issue or PR as related to a new feature.

Comments

@ialidzhikov
Copy link
Contributor

Which component are you using?:

vertical-pod-autoscaler

Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
Let's take a look into

return nil, fmt.Errorf("Failed to sync %v cache.", kind)
:

  • From Go Wiki: Go Code Review Comments: "Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation, since they are usually printed following other context."

Let's take a look into

return nil, fmt.Errorf("error loading limit ranges: %s", err)
:

Describe the solution you'd like.:

See above.

Describe any alternative solutions you've considered.:

N/A

Additional context.:

N/A

@ialidzhikov ialidzhikov added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 7, 2024
@nikzayn
Copy link

nikzayn commented Jun 9, 2024

@ialidzhikov Can I take this up?

@Shubham82
Copy link
Contributor

@ialidzhikov, I think the same thing (Error string capitalization) is used in many places in the files, so we must update the file to follow the go language approach.

@Shubham82
Copy link
Contributor

@ialidzhikov Can I take this up?

@nikzayn you can work on this issue by assigning it to yourself.

@Shubham82
Copy link
Contributor

cc @voelzmo @kwiesmueller

/area vertical-pod-autoscaler

@nikzayn
Copy link

nikzayn commented Jun 10, 2024

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vertical-pod-autoscaler kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

4 participants