ppc64le-cloud / pvsadm

Tool for managing the IBM Power Systems Virtual Servers
Apache License 2.0
37 stars 32 forks source link

Remove k8s.io/apimachinery dependency for wait mechanism #617

Closed kishen-v closed 3 months ago

kishen-v commented 3 months ago

Fixes: #615

Output:

Kishens-MacBook-Pro: bin : remove-k8s-dep  : ./pvsadm image import --pvs-instance-id foo --object rhel-94-04242024.ova.gz -b foo -r us-south --accesskey foo --secretkey foo --pvs-image-name rhel-94-04242024-tier1 --pvs-storagetype tier1 -w -v4
I0519 23:03:21.618637   79792 root.go:50] Using an API key from IBMCLOUD_API_KEY environment variable
I0519 23:03:23.513579   79792 import.go:184] Importing image rhel-94-04242024-tier1. Please wait...
I0519 23:05:29.652725   79792 import.go:211] Image import is in-progress, current state: running
I0519 23:07:29.461965   79792 import.go:211] Image import is in-progress, current state: running
I0519 23:09:29.514869   79792 import.go:211] Image import is in-progress, current state: running
I0519 23:11:29.460364   79792 import.go:211] Image import is in-progress, current state: running
I0519 23:13:29.318834   79792 import.go:205] Image imported successfully in 10m1.046710302s
I0519 23:13:29.319017   79792 import.go:216] Retrieving image details
I0519 23:13:29.937600   79792 import.go:229] Waiting for image rhel-94-04242024-tier1 to be active. Please wait...
I0519 23:15:29.675209   79792 import.go:246] Successfully imported the image: rhel-94-04242024-tier1 with ID: foo in 10.040292425s
ppc64le-cloud-bot commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kishen-v, mkumatag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/ppc64le-cloud/pvsadm/blob/main/OWNERS)~~ [mkumatag] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment