-
Notifications
You must be signed in to change notification settings - Fork 685
Add SchedulerHostAddress to DaprSidecarOptions #6478
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
Add SchedulerHostAddress to DaprSidecarOptions #6478
Conversation
I enhanced DaprSidecarOptions by adding the SchedulerHostAddress property. This will allow the developer to specify the host address of the Dapr scheduler service if not running on localhost (for example, if developing using Docker Compose, the scheduler service will be running on a different host). I enhanced the DaprDistributedApplicationLifecycleHook to pass the --scheduler-host-address parameter to the Dapr sidecar if the DaprSidecarOptions.SchedulerHostAddress property is specified. Resolves dotnet#6477
@dotnet-policy-service agree |
Did you test this PR? |
@davidfowl Yes, I did. Are you just asking for verification, or did you see a problem? I didn't see any unit tests for builder.AddExecutable("authorization-service", "../../../target/debug/authorization-service",
"../services/authorization")
.WithDaprSidecar(new DaprSidecarOptions
{
AppId = "authorization-service",
AppPort = 8000,
PlacementHostAddress = "placement:50006",
SchedulerHostAddress = "scheduler:50007"
})
.WithHttpEndpoint(8000, isProxied: false); Here's the Dapr sidecar logs where you can see it's picking up the value of
|
We don't have test automation setup which makes it difficult to take any changes to the dapr integration currently. The substitute so far has been the playground example and manual verification. cc @philliphoff |
Understood. Is there anything else that I can do to move this forward? Unfortunately, this flag is going to be important for Dapr integration for anyone using Aspire with Dapr 1.14.x and not running with the basic setup (the scheduler service was introduced in the 1.14.0 release). Without it, the Dapr sidecar will continually throw errors. It might be a good idea to future-proof the Dapr integration to expose a generic |
@mfcollins3 That's a good idea, though I'd make that a separate PR. |
Description
I enhanced DaprSidecarOptions by adding the SchedulerHostAddress property. This will allow the developer to specify the host address of the Dapr scheduler service if not running on localhost (for example, if developing using Docker Compose, the scheduler service will be running on a different host).
I enhanced the DaprDistributedApplicationLifecycleHook to pass the --scheduler-host-address parameter to the Dapr sidecar if the DaprSidecarOptions.SchedulerHostAddress property is specified.
Fixes #6477
Checklist
<remarks />
and<code />
elements on your triple slash comments?Microsoft Reviewers: Open in CodeFlow