2023-04-12 13:22:09 +00:00
|
|
|
|
namespace KubernetesWorkflow
|
|
|
|
|
{
|
|
|
|
|
public class Configuration
|
|
|
|
|
{
|
2023-05-03 12:18:37 +00:00
|
|
|
|
public Configuration(string k8sNamespacePrefix, string? kubeConfigFile, TimeSpan operationTimeout, TimeSpan retryDelay, ConfigurationLocationEntry[] locationMap)
|
2023-04-12 13:22:09 +00:00
|
|
|
|
{
|
2023-05-03 12:18:37 +00:00
|
|
|
|
K8sNamespacePrefix = k8sNamespacePrefix;
|
2023-04-12 13:22:09 +00:00
|
|
|
|
KubeConfigFile = kubeConfigFile;
|
|
|
|
|
OperationTimeout = operationTimeout;
|
|
|
|
|
RetryDelay = retryDelay;
|
|
|
|
|
LocationMap = locationMap;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-03 12:18:37 +00:00
|
|
|
|
public string K8sNamespacePrefix { get; }
|
2023-04-12 13:22:09 +00:00
|
|
|
|
public string? KubeConfigFile { get; }
|
|
|
|
|
public TimeSpan OperationTimeout { get; }
|
|
|
|
|
public TimeSpan RetryDelay { get; }
|
|
|
|
|
public ConfigurationLocationEntry[] LocationMap { get; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ConfigurationLocationEntry
|
|
|
|
|
{
|
|
|
|
|
public ConfigurationLocationEntry(Location location, string workerName)
|
|
|
|
|
{
|
|
|
|
|
Location = location;
|
|
|
|
|
WorkerName = workerName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Location Location { get; }
|
|
|
|
|
public string WorkerName { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|