Skip to content

Conversation

asimpleidea
Copy link
Member

@asimpleidea asimpleidea commented Aug 5, 2022

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 Google Service Directory as it always did, but this time it can just be done as cnwan-operator run servicedirectory [FLAGS] -- other aliases are also provided.

TODOs:

Other todos coming.

@asimpleidea asimpleidea added the enhancement New feature or request label Aug 5, 2022
@asimpleidea asimpleidea requested review from arnatal and ljakab August 5, 2022 13:28
@asimpleidea asimpleidea self-assigned this Aug 5, 2022
@asimpleidea asimpleidea changed the title Introduce run servicedirectory command CLI: run servicedirectory command Aug 5, 2022
@asimpleidea asimpleidea force-pushed the cli/service-directory branch from 8d3fbda to a2bd48d Compare August 18, 2022 13:23
@asimpleidea asimpleidea force-pushed the cli/service-directory branch from a2bd48d to 8725039 Compare August 24, 2022 08:23
@asimpleidea asimpleidea force-pushed the cli/service-directory branch 5 times, most recently from 10df928 to bced905 Compare September 2, 2022 09:05
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 enables the operator to run with Google Service Directory.
This command is not enabled yet, and will be once all others will be
completed as well.

Signed-off-by: Elis Lulja <[email protected]>
Network auto detection in GKE was not working due to deprecated API.
This commit updates the code by using the new ones.

Signed-off-by: Elis Lulja <[email protected]>
This commit allows the `run servicedirectory` command to start
the program and register services on Service Directory by using the
`run` function.

Signed-off-by: Elis Lulja <[email protected]>
@asimpleidea asimpleidea force-pushed the cli/service-directory branch from bced905 to d0880ab Compare September 9, 2022 14:47
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