2
0
mirror of synced 2025-01-10 16:46:05 +00:00
2023-09-25 08:47:19 +02:00

23 lines
500 B
C#

namespace KubernetesWorkflow
{
public interface ILocation
{
}
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}'";
}
}
}