-
Notifications
You must be signed in to change notification settings - Fork 11
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
Update Discovery.KubernetesApi to support multi-config #2596
Update Discovery.KubernetesApi to support multi-config #2596
Conversation
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.
LGTM
@@ -14,6 +18,31 @@ internal static class ConfigExtensions | |||
var value = config.GetString(key); | |||
return string.IsNullOrWhiteSpace(value) || value.Equals($"<{key}>") ? null : value; | |||
} | |||
|
|||
internal static Configuration.Config MoveTo(this Configuration.Config config, string path) |
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.
Is this the same method from the Azure plugin you were working on?
{ | ||
} | ||
|
||
public KubernetesApiServiceDiscovery(ExtendedActorSystem system, Configuration.Config config) |
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.
LGTM
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.
LGTM
@@ -35,7 +34,7 @@ public class KubernetesDiscoveryOptions: IHoconOption | |||
public void Apply(AkkaConfigurationBuilder builder, Setup? setup = null) | |||
{ | |||
var sb = new StringBuilder(); | |||
sb.AppendLine($"{FullPath} {{"); | |||
sb.AppendLine($"{KubernetesApiServiceDiscovery.FullPath(ConfigPath)} {{"); |
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.
LGTM - looks like we made the pathing more dynamic all-around here.
Changes
akka.discovery.method
value