Skip to content

Commit

Permalink
Add CLI interface for openstack and kubernetes
Browse files Browse the repository at this point in the history
Signed-off-by: Anja Strunk <anja.strunk@cloudandheat.com>
  • Loading branch information
anjastrunk committed Nov 16, 2023
1 parent 876c264 commit 83604ca
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions generator/gen-gx-credentials.py
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()

1 change: 1 addition & 0 deletions requirements.txt
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

0 comments on commit 83604ca

Please sign in to comment.