You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V1ObjectMetadata defines the namespace property as follows.
[JsonProperty(PropertyName = "namespace")]
public string NamespaceProperty { get; set; }
This is likely because namespace is a reserved keyword in C#. However, YamlDotNet does not respect the JsonProperty attribute, so these deserializers fail when they come across namespace in the Yaml.
The best fix would be to either use an attribute that YamlDotNet understands, or to rename this property to Namespace, since C# doesn't care if the N is capitalized. Lastly, to avoid confusion, this property to could be marked with the @.