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 servicedirectory command #98

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

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 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 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]>
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