bumpy-motorcycle-53357
05/25/2021, 4:42 PMValues = new Dictionary<string, object>
{
...
{ "affinity", new Dictionary<string, object>()
{
{ "nodeAffinity", new Dictionary<string, object>()
{
{ "requiredDuringSchedulingIgnoredDuringExecution", new Dictionary<string, object>()
{
{ "nodeSelectorTerms", new object[]
{
new Dictionary<string, object>()
{
{ "matchExpressions", new object[]
{
new Dictionary<string, object>()
{
{ "key", "<http://eks.amazonaws.com/capacityType|eks.amazonaws.com/capacityType>" },
{ "operator", "NotIn" },
{ "values", new object[]
{
"SPOT"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
worried-city-86458
05/25/2021, 11:57 PMbumpy-motorcycle-53357
05/26/2021, 1:43 PMworried-city-86458
05/26/2021, 7:07 PM.ToDictionary(x => (string)x, x => x)
?using YamlDotNet.Serialization;
public static class StringExtensions
{
public static IDictionary<string, object> DeserializeYaml(this string yaml) => new DeserializerBuilder().Build().Deserialize<IDictionary<string, object>>(yaml);
}
bumpy-motorcycle-53357
05/27/2021, 2:01 PM