cloud-native-toolkit / itzcli

Go Implementation of an IBM Technology Zone (https://techzone.ibm.com) CLI
MIT License
4 stars 1 forks source link

Added deploy pipeline command to get the pipeline and run from the pipeline id #41

Closed nathanagood closed 1 year ago

nathanagood commented 1 year ago

Implemented the command deploy pipeline to directly deploy the pipeline, given the pipeline ID. Also cleaned up the list pipelines command to query for only the pipeline type, as described in the catalog.

For example, see:

$ itz list pipelines
NAME                                                                ID                                    NAMESPACE
Some pipeline 09f581a8-c4f1-47e0-b66f-41e4795c1ad5 default

So, to deploy this pipeline to a cluster, you can use the command:

$ itz deploy pipeline -a https://my.cluster.example.com:6443 -u clusterusr -P mysecretclusterpassword -p 09f581a8-c4f1-47e0-b66f-41e4795c1ad5

Signed-off-by: Nathan Good nathan.good@ibm.com