Skip to content

Item needs to be one of [Node, Deployment, ReplicaSet, StatefulSet, Pod, DeploymentConfig, ReplicationController], but was: [Service]  #2672

@Eddman

Description

@Eddman

We're watching service readiness using following code:

final Service service = this.kubernetesClient
                        .services()
                        .inNamespace(namespace)
                        .withName(name)
                        .waitUntilReady(60, TimeUnit.SECONDS);

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:

java.lang.IllegalArgumentException: Item needs to be one of [Node, Deployment, ReplicaSet, StatefulSet, Pod, ReplicationController], but was: [Service]
	at io.fabric8.kubernetes.client.internal.readiness.Readiness.isReady(Readiness.java:62)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.lambda$waitUntilReady$6(BaseOperation.java:1109)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.waitUntilConditionWithRetries(BaseOperation.java:1131)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.waitUntilCondition(BaseOperation.java:1115)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.waitUntilReady(BaseOperation.java:1109)
	at io.fabric8.kubernetes.client.dsl.internal.core.v1.ServiceOperationsImpl.waitUntilReady(ServiceOperationsImpl.java:83)
	at io.fabric8.kubernetes.client.dsl.internal.core.v1.ServiceOperationsImpl.waitUntilReady(ServiceOperationsImpl.java:37)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions