Skip to content

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 requested review from arnatal and ljakab August 17, 2022 13:47
@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 <[email protected]>
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 `etcd` comand under `run`.

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

Signed-off-by: Elis Lulja <[email protected]>
This commit uses `run` from the `runWithEtcd` to start the program
and register services to etcd.

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