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

Support multiple ClusterPool hosts #3

Open
KevinFCormier opened this issue Feb 4, 2021 · 0 comments
Open

Support multiple ClusterPool hosts #3

KevinFCormier opened this issue Feb 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@KevinFCormier
Copy link
Collaborator

Currently cm is designed around a single user.env configuration file that defines 1 ClusterPool host and the namespace on that host to use for ClusterClaims and ClusterPools.

Some users might want to use multiple ClusterPool hosts.

Option 1

Add a global option to specify the configuration file, for example:

cm -o demo.env list pools

Add a variable in the configuration file and parameterize the name of the context for the ClusterPool host, which is normally cm, so in demo.env the user would set up the existing variables plus one new one:

CLUSTERPOOL_CONTEXT=demo

Then a user would create an alias like:

alias cm:demo="cm -o demo.env"

Finally, the user can use cm:demo for interacting with clusters from their demo pool.

Option 2

If a user wanted to be able to interact with clusters across all their ClusterPool hosts with the same command, this would require a much larger redesign of the configuration file format to allow defining multiple ClusterPool hosts. Most commands would likely need updates to make them loop through all the defined ClusterPool hosts, which would hurt performance, but only for people using multiple ClusterPool hosts. Option 1 seems like a much simpler option, and probably the most value for effort, since I do not anticipate many users needing access to multiple ClusterPool hosts, but I may be mistaken.

@KevinFCormier KevinFCormier added the enhancement New feature or request label Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant