Browse Source

Update properties being set via constructor to be get only (#931)

Co-authored-by: kwabena <kwabena@mpharma.com>
davidfowl/add-vscode-extension
Kaypee 4 years ago
committed by GitHub
parent
commit
2589bf13e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Microsoft.Tye.Core/ApplicationBuilder.cs
  2. 2
      src/Microsoft.Tye.Core/ContainerServiceBuilder.cs
  3. 2
      src/Microsoft.Tye.Core/DockerFileServiceBuilder.cs
  4. 2
      src/Microsoft.Tye.Core/ExecutableServiceBuilder.cs
  5. 2
      src/Microsoft.Tye.Core/IngressBuilder.cs
  6. 4
      src/Microsoft.Tye.Core/KubernetesManifestInfo.cs
  7. 6
      src/Microsoft.Tye.Core/SidecarBuilder.cs
  8. 6
      src/Microsoft.Tye.Core/VolumeBuilder.cs

4
src/Microsoft.Tye.Core/ApplicationBuilder.cs

@ -17,9 +17,9 @@ namespace Microsoft.Tye
DashboardPort = dashboardPort; DashboardPort = dashboardPort;
} }
public FileInfo Source { get; set; } public FileInfo Source { get; }
public string Name { get; set; } public string Name { get; }
public int? DashboardPort { get; set; } public int? DashboardPort { get; set; }

2
src/Microsoft.Tye.Core/ContainerServiceBuilder.cs

@ -14,7 +14,7 @@ namespace Microsoft.Tye
Image = image; Image = image;
} }
public string Image { get; set; } public string Image { get; }
public bool IsAspNet { get; set; } public bool IsAspNet { get; set; }

2
src/Microsoft.Tye.Core/DockerFileServiceBuilder.cs

@ -13,7 +13,7 @@ namespace Microsoft.Tye
{ {
Image = image; Image = image;
} }
public string Image { get; set; } public string Image { get; }
public string? DockerFile { get; set; } public string? DockerFile { get; set; }
public Dictionary<string, string> BuildArgs { get; set; } = new Dictionary<string, string>(); public Dictionary<string, string> BuildArgs { get; set; } = new Dictionary<string, string>();

2
src/Microsoft.Tye.Core/ExecutableServiceBuilder.cs

@ -14,7 +14,7 @@ namespace Microsoft.Tye
Executable = executable; Executable = executable;
} }
public string Executable { get; set; } public string Executable { get; }
public string? WorkingDirectory { get; set; } public string? WorkingDirectory { get; set; }

2
src/Microsoft.Tye.Core/IngressBuilder.cs

@ -13,7 +13,7 @@ namespace Microsoft.Tye
Name = name; Name = name;
} }
public string Name { get; set; } public string Name { get; }
public int Replicas { get; set; } = 1; public int Replicas { get; set; } = 1;

4
src/Microsoft.Tye.Core/KubernetesManifestInfo.cs

@ -13,8 +13,8 @@ namespace Microsoft.Tye
Service = new ServiceManifestInfo(); Service = new ServiceManifestInfo();
} }
public DeploymentManifestInfo? Deployment { get; set; } public DeploymentManifestInfo? Deployment { get; }
public ServiceManifestInfo Service { get; set; } public ServiceManifestInfo Service { get; }
} }
} }

6
src/Microsoft.Tye.Core/SidecarBuilder.cs

@ -15,11 +15,11 @@ namespace Microsoft.Tye
ImageTag = imageTag; ImageTag = imageTag;
} }
public string Name { get; set; } public string Name { get; }
public string ImageName { get; set; } public string ImageName { get; }
public string ImageTag { get; set; } public string ImageTag { get; }
public List<string> Args { get; } = new List<string>(); public List<string> Args { get; } = new List<string>();

6
src/Microsoft.Tye.Core/VolumeBuilder.cs

@ -13,10 +13,10 @@ namespace Microsoft.Tye
Target = target; Target = target;
} }
public string? Source { get; set; } public string? Source { get; }
public string? Name { get; set; } public string? Name { get; }
public string Target { get; set; } public string Target { get; }
} }
} }

Loading…
Cancel
Save