cs-codex-dist-tests/Framework/KubernetesWorkflow/Location.cs

25 lines
533 B
C#
Raw Normal View History

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
}
}