Azure / azure-functions-dapr-extension

Extension for interacting with Dapr APIs from an Azure Function
MIT License
100 stars 34 forks source link

Adding hosting env check for #149

Closed ASHIQUEMD closed 1 year ago

ASHIQUEMD commented 1 year ago

This PR contains changes for adding a condition to restrict below hosting environment of azure functions.

  1. Functions Premium
  2. App service plan
  3. Consumption (Serverless)

Why did we add restricted list instead of allowed list:

Azure Functions Dapr extension is supposed to work on self hosted env as well as in AKS, so having the restricted list helps us achieve this easily, where Dapr extension will still be working in self hosted and AKS env along with ACA.

codecov[bot] commented 1 year ago

Codecov Report

Merging #149 (40c7440) into master (cbd910d) will increase coverage by 0.64%. Report is 1 commits behind head on master. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
+ Coverage   71.97%   72.62%   +0.64%     
==========================================
  Files          51       52       +1     
  Lines        1017     1041      +24     
==========================================
+ Hits          732      756      +24     
  Misses        285      285              
Files Changed Coverage Δ
...bs.Extensions.Dapr/DaprWebJobsBuilderExtensions.cs 92.30% <100.00%> (+3.41%) :arrow_up:
....WebJobs.Extensions.Dapr/Utils/EnvironmentUtils.cs 100.00% <100.00%> (ø)