ionos-cloud / sdk-go

Apache License 2.0
8 stars 1 forks source link

Kubernetes Cluster Available - helper method #25

Closed BertR closed 2 years ago

BertR commented 2 years ago

Dear team,

is there a helper method that could be used to wait for the Kubernetes Cluster to become available?

gabriel-savu commented 2 years ago

Hello, yes it is and is available with the new version of sdk-go(6.0.4) which will be released today. In the client.go file there are some functions that are called: WaitForState, WaitForStateAsync, WaitForDeletion, WaitForDeletionAsync. I provided also some examples of how to sue it in the example directory of sdk(are named useWaitFor......) which are exactly with a Kubernetes Cluster.

BertR commented 2 years ago

Thanks!