-
Notifications
You must be signed in to change notification settings - Fork 520
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.
Thanks for doing this! a few small comments
removed redundant code
@@ -138,15 +138,17 @@ public override Task ProcessAsync(ExtensionContext context, ExtensionConfigurati | |||
deployment.Annotations.Add("dapr.io/id", project.Name); | |||
deployment.Annotations.Add("dapr.io/port", (httpBinding.Port ?? 80).ToString(CultureInfo.InvariantCulture)); | |||
|
|||
#pragma warning disable CS8604 // Possible null reference argument. |
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.
That's usally done by doing this:
daprConfig!.ToString()
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 did it with your suggestion, but no luck. Could anyone tell me how can I overcome this check?
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 did deployment.Annotations.TryAdd("dapr.io/config", daprConfig!.ToString() ?? string.Empty);
, and it can overcome this check but not sure it is correctly
I'll clone this and take a look. let's try to get this done 👍 |
This looks close enough and you've got the basics done. I'm going to merge this and then I'll fix the formatting. |
* add debug and tracing annotations
This PR adds
dapr.io/config
anddapr.io/log-level
into the annotations section in dapr.yaml. Related to #296