2
0
mirror of synced 2025-01-11 00:56:05 +00:00

23 lines
500 B
C#
Raw Normal View History

2023-04-12 13:53:55 +02:00
namespace KubernetesWorkflow
{
2023-09-25 08:47:19 +02:00
public interface ILocation
2023-04-12 13:53:55 +02:00
{
2023-09-25 08:47:19 +02: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 13:53:55 +02:00
}
}