cs-codex-dist-tests/Framework/KubernetesWorkflow/Configuration.cs

26 lines
847 B
C#
Raw Permalink Normal View History

2023-09-20 08:13:29 +00:00
using Newtonsoft.Json;
namespace KubernetesWorkflow
{
public class Configuration
{
public Configuration(string? kubeConfigFile, TimeSpan operationTimeout, TimeSpan retryDelay, string kubernetesNamespace)
{
KubeConfigFile = kubeConfigFile;
OperationTimeout = operationTimeout;
RetryDelay = retryDelay;
KubernetesNamespace = kubernetesNamespace;
}
public string? KubeConfigFile { get; }
public TimeSpan OperationTimeout { get; }
public TimeSpan RetryDelay { get; }
public string KubernetesNamespace { get; }
public bool AllowNamespaceOverride { get; set; } = true;
2023-09-13 14:06:05 +00:00
public bool AddAppPodLabel { get; set; } = true;
2023-09-20 08:13:29 +00:00
[JsonIgnore]
public IK8sHooks Hooks { get; set; } = new DoNothingK8sHooks();
}
}