namespace KubernetesWorkflow.Recipe { public class PodLabels { private readonly Dictionary labels = new Dictionary(); public void Add(string key, string value) { labels.Add(key, K8sNameUtils.Format(value)); } public PodLabels Clone() { var result = new PodLabels(); foreach (var entry in labels) result.Add(entry.Key, entry.Value); return result; } public void Clear() { labels.Clear(); } internal Dictionary GetLabels() { return labels; } } }