Skip to content

ref: remove pkg/helm, pkg/hapi, pkg/tiller - #5365

Merged
bacongobbler merged 9 commits into
helm:dev-v3from
bacongobbler:remove-pkg-tiller
Mar 13, 2019
Merged

bacongobbler merged 9 commits into
helm:dev-v3from
bacongobbler:remove-pkg-tiller

Conversation

@bacongobbler

@bacongobbler bacongobbler commented Feb 26, 2019 •

Copy link
Copy Markdown
Member

This is a massive internal refactoring of pkg/, removing the helm, hapi and tiller packages, refactoring the code into pkg/action, and refactoring cmd/helm to rely on the action package.

TODO:

  • comb through the code, making sure imports look right and the code is in the right place
  • manually test to ensure everything works
    - [ ] move functions like newInstallCmd into pkg/cli to accommodate Proposal: make cobra.Command functions public #5311 deferred

Signed-off-by: Matthew Fisher [email protected]

@bacongobbler bacongobbler added the v3.x Issues and Pull Requests related to the major version v3 label Feb 26, 2019
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 26, 2019
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 7, 2019
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 12, 2019
@bacongobbler bacongobbler changed the title WIP: ref: remove pkg/helm, pkg/hapi, pkg/tiller ref: remove pkg/helm, pkg/hapi, pkg/tiller Mar 12, 2019

@adamreese adamreese left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • Add back release_testing_test.go unit tests
  • Clean up old golden files rm ./cmd/helm/testdata/output/* && go test ./cmd/helm -update

Comment thread cmd/helm/template_test.go
{
name: "check set name",
cmd: fmt.Sprintf("template '%s' -x '%s' --set service.name=apache", chartPath, filepath.Join("templates", "service.yaml")),
cmd: fmt.Sprintf("template '%s' --set service.name=apache", chartPath),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add -x flag back?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

According to @technosophos this was intentional in preparation for the Lua engine. He wasn't sure if we wanted to allow partial template execution as it may mess up how the Lua engine depends on certain templates. However, we currently don't have Lua engine support so this could be premature. I'm happy to add this back and we can revisit that conversation when we add Lua support in here though. What do you think about that?

Comment thread pkg/action/pull.go Resolved
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 13, 2019
@bacongobbler

bacongobbler commented Mar 13, 2019 •

Copy link
Copy Markdown
Member Author

Also adding to the TODO list:

  • move AddFlags functions back to cmd

@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 13, 2019
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 13, 2019
test.go is a duplicate of release_testing.go

Signed-off-by: Matthew Fisher <[email protected]>
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 13, 2019
@bacongobbler

Copy link
Copy Markdown
Member Author
  • Add back release_testing_test.go unit tests
  • Clean up old golden files rm ./cmd/helm/testdata/output/* && go test ./cmd/helm -update

done

unused code

Signed-off-by: Matthew Fisher <[email protected]>
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 13, 2019
Signed-off-by: Matthew Fisher <[email protected]>
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 13, 2019
Comment thread pkg/action/show.go Resolved
@helm-bot helm-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 13, 2019
@tjanson

tjanson commented Nov 16, 2023

Copy link
Copy Markdown

I believe this refactoring removed the CLI flag --col-width (aka --max-col-width) from helm list (and perhaps others). If so, was this intentional or should it be added back in?

Removed here:
https://github.com/helm/helm/pull/5365/files#diff-b4b2cdce999ae39b7796446d071f9457a4e4d69dfc4c01a227bd54bf88c8461dL143

Originally added in #2836.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. v3.x Issues and Pull Requests related to the major version v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants