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

Drop unused field. #12924

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Drop unused field. #12924

wants to merge 2 commits into from

Conversation

porridge
Copy link
Contributor

@porridge porridge commented Apr 4, 2024

What this PR does / why we need it:

it seems that manifestFile.apis is a write-only field, and can safely be removed.

Special notes for your reviewer:

The Capabilities.APIVersions field, while no longer used on its own by the Helm code directly, remains exposed to helm charts as part of the .Capabilities struct, which may well depend on it, so it must stay untouched.

Introducing new versions of functions with one less argument seems like an overkill, so I just replaced the argument names with an underscore.

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Signed-off-by: Marcin Owsiany <porridge@redhat.com>
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 4, 2024
Copy link
Contributor

@robertsirc robertsirc left a comment

Choose a reason for hiding this comment

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

Not sure if the maintainers plan on using this in the future or not. Comments do denote it isn't used. But this looks good to me.

While no longer used by the helm code, this field is part of the API exposed to helm charts as part of the .Capabilities struct.

Signed-off-by: Marcin Owsiany <marcin@redhat.com>
@porridge
Copy link
Contributor Author

Thanks for taking a look @robertsirc !

Removed one questionable comment line that I had added, and explained the situation a bit more in the PR description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants