-
Notifications
You must be signed in to change notification settings - Fork 0
NetPeering subcommands #40
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
base: main
Are you sure you want to change the base?
Conversation
…r create subcommand. Signed-off-by: Emmanuel Quevillon <[email protected]>
Signed-off-by: Emmanuel Quevillon <[email protected]>
Signed-off-by: Emmanuel Quevillon <[email protected]>
Signed-off-by: Emmanuel Quevillon <[email protected]>
Signed-off-by: Emmanuel Quevillon <[email protected]>
…jects Signed-off-by: Emmanuel Quevillon <[email protected]>
…ects Signed-off-by: Emmanuel Quevillon <[email protected]>
…ects Signed-off-by: Emmanuel Quevillon <[email protected]>
anton-kutin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error received during test
for test
- create two projects with different cidr
- create cluster in each project
- do not create nodepools on clusters
- try to create netpeering via oks-cli - error message:
line 186, in netpeering_create
source.update({'network_id': source_nodepool['items'][0]['metadata']['labels']['oks.network_id'],
Hi @anton-kutin This error is normal as to create a netpeering between 2 projects we need to get the |
Signed-off-by: Emmanuel Quevillon <[email protected]>
Hi guys,
This Pull Request introduces a new subcommands
netpeeringto manage (create, list, get, delete) NetPeering between 2 OKS projects only at the moment. It could be possible to extends this feature to also manage NetPeering between an OKS project and an OUTSCALE VPC account.Global options
Delete a netpeering
List netpeering
Create a netpeering
Usage: oks-cli netpeering create [OPTIONS] Create a NetPeering between 2 projects Options: --from-project TEXT Source project name to create netpeering from [required] --from-cluster TEXT Source cluster to create netpeering from [required] --to-project TEXT Project name to create netpeering to [required] --to-cluster TEXT Target cluster to create netpeering to [required] --netpeering-name TEXT Name of the NetPeeringRequest, default to '{from- project}-to-{to-project} --auto-approve Automatically confirm NetPeering acceptance --user TEXT User --group TEXT Group --dry-run Client dry-run, only print the object that would be sent, without sending it -o, --output [json|yaml] Specify output format, by default is json --profile TEXT Configuration profile to use --help Show this message and exit.Available to discuss about this PR if needed.