2023-11-12 09:07:23 +00:00
|
|
|
|
using KubernetesWorkflow.Types;
|
|
|
|
|
|
|
|
|
|
namespace KubernetesWorkflow
|
2023-04-12 11:53:55 +00:00
|
|
|
|
{
|
2023-09-25 06:47:19 +00:00
|
|
|
|
public interface ILocation
|
2023-04-12 11:53:55 +00:00
|
|
|
|
{
|
2023-09-25 06:47:19 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Location : ILocation
|
|
|
|
|
{
|
|
|
|
|
internal Location(K8sNodeLabel? nodeLabel = null)
|
|
|
|
|
{
|
|
|
|
|
NodeLabel = nodeLabel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal K8sNodeLabel? NodeLabel { get; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
if (NodeLabel == null) return "Location:Unspecified";
|
|
|
|
|
return $"Location:KubeNode-'{NodeLabel.Key}:{NodeLabel.Value}'";
|
|
|
|
|
}
|
2023-04-12 11:53:55 +00:00
|
|
|
|
}
|
|
|
|
|
}
|