Skip to content
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

Move namespace metadata #1233

Merged
merged 20 commits into from
Feb 21, 2023
Merged

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.

@@ -152,6 +153,7 @@ static Map<String, String> serviceMetadata(String serviceId, Service service,
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