-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Move namespace metadata #1233
Conversation
|
||
for (EndpointSubset endpointSubset : subsets) { | ||
|
||
if (properties.allNamespaces()) { |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
@ryanjbaxter I guess one more minor one. thank you |
No description provided.