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

chore: remove unuse untar option #12202

Closed
wants to merge 1 commit into from
Closed

chore: remove unuse untar option #12202

wants to merge 1 commit into from

Conversation

Abirdcfly
Copy link
Contributor

What this PR does / why we need it:
getter.options has parameters untar and its setting function WithUntar().
But it's not used anywhere, not even in the tests.
Special notes for your reviewer:

If applicable:

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

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 13, 2023
Copy link
Collaborator

@mattfarina mattfarina left a comment

Choose a reason for hiding this comment

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

Helm follows semantic versioning. We cannot remove this until Helm v4 or the Go API will be broken.

A useful change would be to have a code comment noting that it's deprecated.

@Abirdcfly
Copy link
Contributor Author

We cannot remove this until Helm v4 or the Go API will be broken.

But options.untar is an Non-capitalized identifier. it can not be exported and can only be accessed from within the same package, and we do not use this identifier in options package...

So, neither options.untar nor WithUntar() will have any effect.

@mattfarina
Copy link
Collaborator

@Abirdcfly The issue is with WithUntar. That is a public method that could be used in some calling code for someone using the Helm SDK. Even if it does nothing. Removing it will break their calling code. This is part of the public Helm Go SDK API so we can't remove it until Helm v4. To remove it would violate Semantic Versioning.

@joejulian
Copy link
Contributor

Thanks for noticing this and making an effort, @Abirdcfly . I'm going to go ahead and close this, though, since it's not something that can be merged.

@joejulian joejulian closed this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants