Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

ks component list aggregates from all modules#797

Merged
shomron merged 1 commit intoksonnet:masterfrom
shomron:issue-765-deep-component-list
Jul 30, 2018
Merged

ks component list aggregates from all modules#797
shomron merged 1 commit intoksonnet:masterfrom
shomron:issue-765-deep-component-list

Conversation

@shomron
Copy link
Collaborator

@shomron shomron commented Jul 30, 2018

Fixes #765

Signed-off-by: Oren Shomron shomron@gmail.com

@shomron shomron requested a review from a team July 30, 2018 14:32
@coveralls
Copy link

coveralls commented Jul 30, 2018

Pull Request Test Coverage Report for Build 1253

  • 20 of 24 (83.33%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 71.39%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/component/manager.go 17 21 80.95%
Totals Coverage Status
Change from base Build 1252: 0.3%
Covered Lines: 12035
Relevant Lines: 16858

💛 - Coveralls

@bryanl
Copy link
Member

bryanl commented Jul 30, 2018

@shomron There are no plans to remove --module from this is there?

components := make([]component.Component, 0)
for _, ns := range modules {
members, err := p.cm.Components(ns)
members, err := p.cm.Components(p.app, ns.Name())
Copy link
Member

Choose a reason for hiding this comment

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

module used to be named namespace. That was changed for reasons, but there are still a bunch of ns littered through the code base. Would you mind cleaning up the ones in this PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure thing!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Pushed.

Fixes ksonnet#765

Signed-off-by: Oren Shomron <shomron@gmail.com>
@shomron shomron force-pushed the issue-765-deep-component-list branch from dd7d259 to 6983dd2 Compare July 30, 2018 19:15
@shomron
Copy link
Collaborator Author

shomron commented Jul 30, 2018

There are no plans to remove --module from this is there?

I wasn't planning on it - filtering still seems valuable. I'd like to think in future about consolidating all our filters under a shared --filter interface.

@shomron shomron merged commit 597b75c into ksonnet:master Jul 30, 2018
@shomron shomron deleted the issue-765-deep-component-list branch July 30, 2018 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants