Skip to content

Conversation

wind57
Copy link
Contributor

@wind57 wind57 commented Feb 20, 2023

No description provided.


for (EndpointSubset endpointSubset : subsets) {

if (properties.allNamespaces()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has moved to the method that computes metadata only. But also fixes kind of an inconsistency. We were returning the namespace metadata (via k8s_namespace key) only for when all-namespaces was true. But why? the namespace is accessible for all other options as-well, so I decided to return it regardless of this setting.

serviceMetadata.putAll(portMetadata);
}

serviceMetadata.put(NAMESPACE_METADATA_KEY, namespace);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace metadata is always present and returned.

@wind57 wind57 marked this pull request as ready for review February 21, 2023 17:06
@wind57
Copy link
Contributor Author

wind57 commented Feb 21, 2023

@ryanjbaxter I guess one more minor one. thank you

@ryanjbaxter ryanjbaxter added this to the 3.0.2 milestone Feb 21, 2023
@ryanjbaxter ryanjbaxter merged commit 086faac into spring-cloud:main Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants