26 lines
847 B
C#
26 lines
847 B
C#
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;
|
|
public bool AddAppPodLabel { get; set; } = true;
|
|
|
|
[JsonIgnore]
|
|
public IK8sHooks Hooks { get; set; } = new DoNothingK8sHooks();
|
|
}
|
|
}
|