-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CLI interface for openstack and kubernetes
Signed-off-by: Anja Strunk <anja.strunk@cloudandheat.com>
- Loading branch information
1 parent
876c264
commit 83604ca
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import click | ||
|
||
@click.group() | ||
def cli(): | ||
pass | ||
|
||
@click.command() | ||
@click.argument('cloud') | ||
def openstack(cloud): | ||
"""Generates Gaia-X Credentials for openstack cloud CLOUD. | ||
CLOUD MUST refer to a name defined in Openstack's configuration file clouds.yaml.""" | ||
click.echo(f"Hello {cloud}!") | ||
|
||
|
||
@click.command() | ||
def kubernetes(): | ||
"""Generates Gaia-X Credentials for kubernetes.""" | ||
pass | ||
|
||
|
||
cli.add_command(openstack) | ||
cli.add_command(kubernetes) | ||
|
||
|
||
if __name__ == '__main__': | ||
cli() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
kubernetes==26.1.0 | ||
openstacksdk==1.1.* | ||
PyYAML==6.* | ||
click==8.1.7 |