spring-cloud-kubernetes
spring-cloud-kubernetes copied to clipboard
SpEL expression filter support in Kubernetes Java Client
Describe the bug
The documentation lists a property spring.cloud.kubernetes.discovery.filter:
SpEL expression to filter services AFTER they have been retrieved from the Kubernetes API server.
This property is declared in spring-cloud-kubernetes-commons, yet seems to be only implemented in spring-cloud-kubernetes-fabric8-discovery. The corresponding getServices in spring-cloud-kubernetes-client-discovery does not (yet?) filter using this filter expression.
I'm not sure what the plans are for parity between discovery implementations. If this support is not planned an addition to the documentation might be in order, to note that some properties are not supported in all implementations.
I agree with this bug, both clients should work the same. In general, I could fix this, but when I get my hands to it, unless there will be someone else before.
Stumbled across the same when migrating from fabric8, thanks for validating what I was seeing.
I started work on this one here. If accepted, it will be part of the next release...