-
Notifications
You must be signed in to change notification settings - Fork 7
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
Recursively delete from yaml #50
Conversation
I still need to add tests :/ |
@@ -78,10 +78,10 @@ You will need to have an account on Nextflow Tower (see [Plans and pricing](http | |||
twkit hello-world-config.yml | |||
``` | |||
|
|||
<b>Note</b>: The Tower CLI expects to connect to a Tower instance that is secured by a TLS certificate. If your Tower instance does not present a certificate, you will need to qualify and run your `tw` commands with the `--insecure` flag. For example: | |||
<b>Note</b>: The Tower CLI expects to connect to a Tower instance that is secured by a TLS certificate. If your Tower instance does not present a certificate, you will need to qualify and run your `tw` commands with `--cli` followed by the `--insecure` flag. For example: |
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.
@adamrtalbot I think this is quite ugly to have to provide any additional tw
cli options after --cli
to twkit so it can parse these correctly to the _tw_run()
method in the Tower()
class and not confuse it with twkit
specific arguments such as --delete
and --dryrun
but I am not sure how else to handle this. Any suggestions?
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.
You could quote after the --cli
? So --cli '--insecure'
. Not great. I'll have to think about this.
Adds support for a
--delete
flag where if supplied totwkit
with YAML(s), will recursively delete all resources instead of create them. For example, if you create organization -> workspace -> team -> credentials -> compute-env -> pipeline. When supplyingtwkit file.yaml --delete
, the tool will delete pipeline -> compute-env -> credentials -> team -> workspace -> organization.Leverages existing functionality we had for deleting resources in
overwrite.py
, specifically thedelete_resource()
method called inhandle_overwrite
.