-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Item needs to be one of [Node, Deployment, ReplicaSet, StatefulSet, Pod, DeploymentConfig, ReplicationController], but was: [Service] #2672
Item needs to be one of [Node, Deployment, ReplicaSet, StatefulSet, Pod, DeploymentConfig, ReplicationController], but was: [Service] #2672
Comments
Umm, I think a |
Original implementation of |
ohk, I see. You're right, there is an implementation in Lines 79 to 90 in 69bd362
I think we might have broken this while refactoring waitUntilCondition to use watcher instead of polling (#2239) . In v4.6.0 version of Since Lines 46 to 56 in 69bd362
|
This behavior describes some sort of integrated Readiness Probe, meaning both the Service and the Pod are ready. So as a workaround, given that a valid Service configuration is provided, Adding this to the IMO I don't think that |
So the original behavior was:
But now Somehow it makes sense cause we can wait for |
Yes, I agree with the usefulness of the method, but not sure if the name + DSL access methods align with what it does. |
…lArgumentException Use `waitUntilCondition(Objects::nonNull, amount, timeUnit)` instead of waitUntilReady for `Service` resource
From: #2796 (comment) Given that ServiceOperationsImpl extends BaseOperation which in turns implements the Resource interface which extends the Readiable and VersionWatchAndWaitable interfaces, the Readiness#isReady method, should never throw an Exception. The fact is that from our current DSL point of view, we consider every Resource as waitable/readiable, so Lines 66 to 85 in c65b454
Lines 58 to 64 in c65b454
The fix should be to replace line 62 by an existence check Objects:nonNull of a resource retrieved from the server, and maybe warn the user about the resource not being of what we consider to be of a "RediableKubernetesResource" type. |
…lArgumentException Refactor Readiness.isReady to log a warning for Non Readiness Applicable resources instead of throwing IllegalArgumentException. For Readiness check, these kind of resources will only be checked with Objects.nonNull since they become ready as soon as they get created
…lArgumentException Refactor Readiness.isReady to log a warning for Non Readiness Applicable resources instead of throwing IllegalArgumentException. For Readiness check, these kind of resources will only be checked with Objects.nonNull since they become ready as soon as they get created
…lArgumentException Refactor Readiness.isReady to log a warning for Non Readiness Applicable resources instead of throwing IllegalArgumentException. For Readiness check, these kind of resources will only be checked with Objects.nonNull since they become ready as soon as they get created
…lArgumentException Refactor Readiness.isReady to log a warning for Non Readiness Applicable resources instead of throwing IllegalArgumentException. For Readiness check, these kind of resources will only be checked with Objects.nonNull since they become ready as soon as they get created
…Exception Refactor Readiness.isReady to log a warning for Non Readiness Applicable resources instead of throwing IllegalArgumentException. For Readiness check, these kind of resources will only be checked with Objects.nonNull since they become ready as soon as they get created
We're watching service readiness using following code:
We used this code with version
4.6.0
and it worked.After upgrading to version
4.13.0
it stopped working with the following exception:The text was updated successfully, but these errors were encountered: