headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.22k stars 156 forks source link

backend: Refactor release.go UpgradeRelease to be shorter #1793

Closed illume closed 7 months ago

illume commented 7 months ago

This function needs to be shorter to reduce the complexity of it, and make it easier to understand.

Currently the code turns off the linter for this issue with "//nolint:funlen".



Related umbrella backend refactoring clean up issue https://github.com/headlamp-k8s/headlamp/issues/855 (other pieces of code have the linter disabled and could also be fixed up, feel free to refactor a different function.)

HariCharanK commented 7 months ago

I'd like to work on this ! You can assign it to me.

HariCharanK commented 7 months ago

Hi, I've submitted a PR. Ensured consistency in coding/ naming conventions.