Skip to content

dynamic provider factory#110

Merged
mcred merged 4 commits intotitan-data:masterfrom
eschrock:feature/context-infrastructure
Nov 25, 2019
Merged

dynamic provider factory#110
mcred merged 4 commits intotitan-data:masterfrom
eschrock:feature/context-infrastructure

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