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 etcd command #123

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 etcd as it always did, but this time it can just be done as cnwan-operator run etcd [FLAGS].

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
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 <elulja@cisco.com>
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 <elulja@cisco.com>
This commit moves code to get files from a path or a configmap/secret
to separate functions or utility functions.
This commit introduces the `etcd` comand under `run`.

It is not active yet as it will be in later commits.

Signed-off-by: Elis Lulja <elulja@cisco.com>
This commit uses `run` from the `runWithEtcd` to start the program
and register services to etcd.

Signed-off-by: Elis Lulja <elulja@cisco.com>
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.

None yet

1 participant