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

Proper io.Closing around Packages #843

Merged
merged 4 commits into from
Sep 19, 2019
Merged

Proper io.Closing around Packages #843

merged 4 commits into from
Sep 19, 2019

Conversation

kensipe
Copy link
Member

@kensipe kensipe commented Sep 18, 2019

What this PR does / why we need it:

  • io.Reader was used for 2 things, buffers and files. Buffers were fine, but were obfuscated as to when a buffer was used or a file. Additionally leaving as a Reader left the opportunity for future confusion. It is now a byte.Buffer. In the one case where a file was passed the file is read to buffer.
    This fixes this comment: // FIXME: Implement 'io.Closer' and make sure that it is called. 'tarPackage' will leak a file descriptor otherwise.

  • Additionally the hastily merged refactor of bundle left confusing variables in places which are resolved.

  • tests were modified for changes

  • clog used in places for verbose logging

  • refactored method names to match changes

Copy link
Contributor

@alenkacz alenkacz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

pkg/kudoctl/packages/package_manager.go Outdated Show resolved Hide resolved
pkg/kudoctl/packages/package_manager.go Show resolved Hide resolved
pkg/kudoctl/packages/package_manager.go Outdated Show resolved Hide resolved
pkg/kudoctl/packages/package_manager.go Outdated Show resolved Hide resolved
pkg/kudoctl/packages/package_manager.go Outdated Show resolved Hide resolved
pkg/kudoctl/packages/package_manager.go Outdated Show resolved Hide resolved
@kensipe kensipe merged commit aea5c2e into master Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants