You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the crane-lib state only work, there is a need where the crane-lib creates a bunch of resources, for example pods, routes, services, configmaps, secrets. The users of the crane-lib need the ability for the resources created, to be in the right state to move forward doing meaningful work. We need the expose this ability either via:
createAndWait, this will create the pod and immediately wait for it to be running
Provide a utility functionIsResourceInState(resource, expectedState). The provides a way for the user to keep checking if the pod created is actually running by returning a true/false.
Some of the things we might way to solve for:
Some things in kube might take a long time for them to be in the right state. For example, if the registry is down for 10 mins, and if the image is not present on the node, it would take some time for kube to pull down the image and run? we might not want to block for 10 mins on the createAndWait call
We might want to encapsulate all the business logic regarding the creations of resources in the implementation itself. I.e. the callers might not have to carry the overhead of knowing about all the resources that were created.
The text was updated successfully, but these errors were encountered:
In the crane-lib state only work, there is a need where the crane-lib creates a bunch of resources, for example pods, routes, services, configmaps, secrets. The users of the crane-lib need the ability for the resources created, to be in the right state to move forward doing meaningful work. We need the expose this ability either via:
createAndWait
, this will create the pod and immediately wait for it to be runningIsResourceInState(resource, expectedState)
. The provides a way for the user to keep checking if the pod created is actually running by returning a true/false.Some of the things we might way to solve for:
createAndWait
callThe text was updated successfully, but these errors were encountered: