From 8cb2d49058ce34cc89808e530d35d58e68b78bdf Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 15 Mar 2023 04:07:18 +0000 Subject: [PATCH] Bumping versions --- README.adoc | 4 ++++ docs/src/main/asciidoc/_configprops.adoc | 2 ++ 2 files changed, 6 insertions(+) diff --git a/README.adoc b/README.adoc index 4e68a8bb..470cc310 100644 --- a/README.adoc +++ b/README.adoc @@ -222,6 +222,10 @@ By default all of the ports and their names will be added to the metadata of the As said before, if you want to get the list of `ServiceInstance` to also include the `ExternalName` type services, you need to enable that support via: `spring.cloud.kubernetes.discovery.include-external-name-services=true`. As such, when calling `DiscoveryClient::getInstances` those will be returned also. You can distinguish between `ExternalName` and any other types by inspecting `ServiceInstance::getMetadata` and lookup for a field called `type`. This will be the type of the service returned : `ExternalName`/`ClusterIP`, etc. +`ServiceInstance` can include the labels and annotations of specific pods from the underlying service instance. To obtain such information, you need to also enable: + +`spring.cloud.kubernetes.discovery.metadata.add-pod-labels=true` and/or `spring.cloud.kubernetes.discovery.metadata.add-pod-annotations=true`. At the moment, such functionality is present only in the fabric8 client implementation, but will be added to the kubernetes native client in a later release. + If, for any reason, you need to disable the `DiscoveryClient`, you can set the following property in `application.properties`: ==== diff --git a/docs/src/main/asciidoc/_configprops.adoc b/docs/src/main/asciidoc/_configprops.adoc index 6cab6ef3..d6e8d2d5 100644 --- a/docs/src/main/asciidoc/_configprops.adoc +++ b/docs/src/main/asciidoc/_configprops.adoc @@ -67,6 +67,8 @@ |spring.cloud.kubernetes.discovery.known-secure-ports | `+++[443, 8443]+++` | |spring.cloud.kubernetes.discovery.metadata.add-annotations | `+++true+++` | |spring.cloud.kubernetes.discovery.metadata.add-labels | `+++true+++` | +|spring.cloud.kubernetes.discovery.metadata.add-pod-annotations | `+++false+++` | +|spring.cloud.kubernetes.discovery.metadata.add-pod-labels | `+++false+++` | |spring.cloud.kubernetes.discovery.metadata.add-ports | `+++true+++` | |spring.cloud.kubernetes.discovery.metadata.annotations-prefix | | |spring.cloud.kubernetes.discovery.metadata.labels-prefix | |