mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Adding New Default Image Config Value to IC. (#2434)
* Adding New Default Image Config Value to IC. * Removing forced image setting. * Updating Webhook Events. * Removing typo. * Updating webhook_events again. * Syncing webhook events. * Fixing check for os type. * Fixing import. * PR Suggestions. * Fix C# Model Typo. * Removing other refs to images. * Removing remaining refs to images outside of models. * Removing hardcoded image values from tests. * Update Default Proxy and Repro Images. Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
dc2c4649c8
commit
3f35d81f4b
@ -57,9 +57,6 @@ public class Scaleset : IFromJsonElement<Scaleset> {
|
||||
|
||||
public class ScalesetApi : ApiBase {
|
||||
|
||||
public const string Image_Ubuntu_20_04 = "Canonical:0001-com-ubuntu-server-focal:20_04-lts:latest";
|
||||
public const string ImageWindows = "MicrosoftWindowsDesktop:Windows-10:win10-21h2-pro:latest";
|
||||
|
||||
public ScalesetApi(Uri endpoint, Microsoft.OneFuzz.Service.Request request, ITestOutputHelper output) :
|
||||
base(endpoint, "/api/Scaleset", request, output) { }
|
||||
|
||||
@ -73,7 +70,7 @@ public class ScalesetApi : ApiBase {
|
||||
return IEnumerableResult<Scaleset>(res);
|
||||
}
|
||||
|
||||
public async Task<Result<Scaleset, Error>> Create(string poolName, int size, string? region = null, string vmSku = "Standard_D2s_v3", string image = Image_Ubuntu_20_04, bool spotInstance = false) {
|
||||
public async Task<Result<Scaleset, Error>> Create(string poolName, int size, string? region = null, string vmSku = "Standard_D2s_v3", string? image = null, bool spotInstance = false) {
|
||||
_output.WriteLine($"Creating scaleset in pool {poolName}, size: {size}");
|
||||
|
||||
var rootScalesetCreate = new JsonObject()
|
||||
|
Reference in New Issue
Block a user