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

dynamic provider factory #110

Merged
merged 4 commits into from
Nov 25, 2019

Conversation

eschrock
Copy link
Contributor

Proposed Changes

This adds some baseline infrastructure to support multiple contexts properly in the CLI. This ditches the global provider and instead derives it within each command. There are three cases:

  • The command references an existing repository (byRepository)
  • The command references a new repository only by name (byRepositoryName)
  • The command does not have a repository (default)

In the future, we'll be able to distinguish repos by name (e.g. "kubernetes/foo"), looking at existing repositories, and having a config file with the default provider set.

There are a few commands that are a bit odd: install, uninstall and upgrade. Until we fully flesh out the context-specific commands, I've just left them as untouched as possible.

Testing

mvn install and e2e getting started tests.

@eschrock eschrock requested a review from a team as a code owner November 24, 2019 04:24
Eric Schrock added 2 commits November 25, 2019 10:31
@mcred mcred merged commit 6cc12c0 into titan-data:master Nov 25, 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.

2 participants