-
Notifications
You must be signed in to change notification settings - Fork 10
feat: cluster API support for Verda Cloud Python SDK #70
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
base: master
Are you sure you want to change the base?
Conversation
Implemented comprehensive support for the Clusters API: - Created ClustersService with methods for cluster management (create, get, delete, scale) - Added Cluster and ClusterNode dataclasses for type safety - Integrated clusters service into VerdaClient - Added ClusterStatus constants for cluster lifecycle management - Created comprehensive unit tests (13 tests covering all API operations) - Added detailed example demonstrating cluster operations - All tests pass (125/125)
e956a7f to
99668e8
Compare
| f'Cluster {id} did not enter creating state within {max_wait_time:.1f} seconds' | ||
| ) | ||
|
|
||
| interval = min(initial_interval * backoff_coefficient**i, max_interval, deadline - now) |
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.
This is duplicated in instances.py so can be extracted to be re-used by both files
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.
honestly I don't know how to make it reusable because it checks either cluster status or instance status
| print(cluster) | ||
|
|
||
| # delete instance | ||
| # verda_client.clusters.action(cluster.id, 'delete') |
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.
uncomment?
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.
can't delete really until it is running but this is 20 minutes wait usually
This adds support for running clusters using Verda Cloud official SDK.
Also fixing so the default
BASE_URLishttps://api.verda.com/v1It is simple as follows:
also implemented: