/ Framework / KubernetesWorkflow / Configuration.cs
Configuration.cs
 1  using Newtonsoft.Json;
 2  
 3  namespace KubernetesWorkflow
 4  {
 5      public class Configuration
 6      {
 7          public Configuration(string? kubeConfigFile, TimeSpan operationTimeout, TimeSpan retryDelay, string kubernetesNamespace)
 8          {
 9              KubeConfigFile = kubeConfigFile;
10              OperationTimeout = operationTimeout;
11              RetryDelay = retryDelay;
12              KubernetesNamespace = kubernetesNamespace;
13          }
14  
15          public string? KubeConfigFile { get; }
16          public TimeSpan OperationTimeout { get; }
17          public TimeSpan RetryDelay { get; }
18          public string KubernetesNamespace { get; }
19          public bool AllowNamespaceOverride { get; set; } = true;
20          public bool AddAppPodLabel { get; set; } = true;
21  
22          [JsonIgnore]
23          public IK8sHooks Hooks { get; set; } = new DoNothingK8sHooks();
24      }
25  }