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

CLI: run cloudmap command #122

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

asimpleidea
Copy link
Member

This PR continues the effort on adding a powerful CLI to the operator and depends on #74.

It allows the operator to run and register its resources on AWS Cloud Map as it always did, but this time it can just be done as cnwan-operator run cloudmap [FLAGS] -- other aliases are also provided.

TODOs:

  • Thoroughly check descriptions and examples
  • Add the command to the run command
  • Unit tests (?)
  • Parse and validate options

Other todos coming.

@asimpleidea asimpleidea added the enhancement New feature or request label Aug 17, 2022
@asimpleidea asimpleidea self-assigned this Aug 17, 2022
@asimpleidea asimpleidea changed the title Cli/cloud map CLI: run cloudmap command Aug 17, 2022
This commit creates the foundations of the new CLI, introducing the
root command and the `run` command. This latter one will be used to
to run the program and will have many sub-commands, which will be added
in next commits.

Signed-off-by: Elis Lulja <[email protected]>
@asimpleidea asimpleidea force-pushed the cli/cloud-map branch 2 times, most recently from 241c777 to 68171e7 Compare August 24, 2022 13:33
The `run` function executes the program as it used to, but is now
oblivious of the service registry you choose.

Signed-off-by: Elis Lulja <[email protected]>
This commit moves code to get files from a path or a configmap/secret
to separate functions or utility functions.
This commit introduces the `cloudmap` subcommand that allows the
operator to perform operations on AWS Cloud Map.

It is not active yet, and will be in future commits.

Signed-off-by: Elis Lulja <[email protected]>
This commit uses the `run` function in the `run` command to start
the program using Cloud Map as service registry.

Signed-off-by: Elis Lulja <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant