-
Notifications
You must be signed in to change notification settings - Fork 669
Remove IResourceWithoutLifetime on everything #10851
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,7 +216,6 @@ internal static IResourceBuilder<T> AddParameter<T>(this IDistributedApplication | |
{ | ||
ResourceType = KnownResourceTypes.Parameter, | ||
Properties = [ | ||
new("parameter.secret", resource.Secret.ToString()), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is removed but I'm not seeing where it is injected elsewhere, are we just relying on parameter value now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't need to remove it but it does nothing today 😄 |
||
new(CustomResourceKnownProperties.Source, resource.ConfigurationKey) | ||
davidfowl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
], | ||
State = KnownResourceStates.Waiting | ||
|
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.
The code waits for resources to be healthy, but connection string resolution might only need the referenced resources to have their connection strings available, not necessarily be healthy. This could cause unnecessary delays or failures if a referenced resource is running but not yet healthy.
Copilot uses AI. Check for mistakes.
Uh oh!
There was an error while loading. Please reload this page.
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.
I think this is a reasonable suggestion tbh. The resource does not need to be healthy to get the value of the connection string. That said, this affects consumers of the
ConnectionStringAvailableEvent
, not users of ConnectionStringExpression