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

Fixes #59 | Get only consul apps from marathon #62

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

janisz
Copy link
Contributor

@janisz janisz commented Feb 19, 2016

No description provided.

@@ -15,7 +15,7 @@ import (
)

type Marathoner interface {
Apps() ([]*apps.App, error)
AppsWithLabel(label string) ([]*apps.App, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

Personally, I would prefer something less technical in this api, like ManagedApps() or ConsulApps() which would be implemented as private return appsWithLabel(apps.MARATHON_CONSUL_LABEL). We wouldn't have to pass that "consul" label value everywhere in the project.
We could go further and rename app.IsConsulApp() to app.IsManagedApp() if necessary.

@dankraw
Copy link
Contributor

dankraw commented Feb 19, 2016

👍 but see comment :>

@janisz janisz force-pushed the Fixes#59_filter_apps_on_marathon_side branch from 6ab3118 to b3aaec3 Compare February 22, 2016 08:25
@janisz
Copy link
Contributor Author

janisz commented Feb 22, 2016

Renamed AppsWithLabelsConsulApps

@janisz janisz self-assigned this Feb 22, 2016
@dankraw
Copy link
Contributor

dankraw commented Feb 22, 2016

👍

janisz added a commit that referenced this pull request Feb 22, 2016
…side

Fixes #59 | Get only consul apps from marathon
@janisz janisz merged commit adba646 into master Feb 22, 2016
@janisz janisz deleted the Fixes#59_filter_apps_on_marathon_side branch February 22, 2016 13:02
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.

3 participants