-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathKubernetesDiscoverySetup.cs
42 lines (38 loc) · 1.71 KB
/
KubernetesDiscoverySetup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// -----------------------------------------------------------------------
// <copyright file="KubernetesDiscoverySetup.cs" company="Akka.NET Project">
// Copyright (C) 2009-2022 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2022 .NET Foundation <https://github.com/akkadotnet/akka.net>
// </copyright>
// -----------------------------------------------------------------------
using Akka.Actor.Setup;
#nullable enable
namespace Akka.Discovery.KubernetesApi
{
public class KubernetesDiscoverySetup: Setup
{
public string? ApiCaPath { get; set; }
public string? ApiTokenPath { get; set; }
public string? ApiServiceHostEnvName { get; set; }
public string? ApiServicePortEnvName { get; set; }
public string? PodNamespacePath { get; set; }
public string? PodNamespace { get; set; }
public bool? AllNamespaces { get; set; }
public string? PodDomain { get; set; }
public string? PodLabelSelector { get; set; }
public bool? RawIp { get; set; }
public string? ContainerName { get; set; }
internal KubernetesDiscoverySettings Apply(KubernetesDiscoverySettings settings)
=> settings.Copy(
apiCaPath: ApiCaPath,
apiTokenPath: ApiTokenPath,
apiServiceHostEnvName: ApiServiceHostEnvName,
apiServicePortEnvName: ApiServicePortEnvName,
podNamespacePath: PodNamespacePath,
podNamespace: PodNamespace,
allNamespaces: AllNamespaces,
podDomain: PodDomain,
podLabelSelector: PodLabelSelector,
rawIp: RawIp,
containerName: ContainerName);
}
}