Skip to content

Update Discovery.KubernetesApi to support multi-config#2596

Merged
Aaronontheweb merged 1 commit into
akkadotnet:devfrom
Arkatufus:update-discovery-kubernetes-for-multi-config
Jun 27, 2024
Merged

Update Discovery.KubernetesApi to support multi-config#2596
Aaronontheweb merged 1 commit into
akkadotnet:devfrom
Arkatufus:update-discovery-kubernetes-for-multi-config

Conversation

@Arkatufus

Copy link
Copy Markdown
Contributor

Changes

  • Add Akka.Hosting support
  • Add multi-config support
    • Make discovery plugin id configurable (was hardcoded)
    • Automatically generate default config fallback for each named discovery id
    • Only plugin with IsDefaultPlugin set to true will be used as akka.discovery.method value

@Aaronontheweb Aaronontheweb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

return string.IsNullOrWhiteSpace(value) || value.Equals($"<{key}>") ? null : value;
}

internal static Configuration.Config MoveTo(this Configuration.Config config, string path)

Copy link
Copy Markdown
Member

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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

{
var sb = new StringBuilder();
sb.AppendLine($"{FullPath} {{");
sb.AppendLine($"{KubernetesApiServiceDiscovery.FullPath(ConfigPath)} {{");

Copy link
Copy Markdown
Member

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.

@Aaronontheweb Aaronontheweb merged commit 6d5402d into akkadotnet:dev Jun 27, 2024
@Arkatufus Arkatufus deleted the update-discovery-kubernetes-for-multi-config branch July 15, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants