revert change to structs from classes for IntOrString and ResourceQuantity, and handle null values in YAML converters (#1673)
* feat: add V2HorizontalPodAutoscaler integration test * fix: change structs to classes for IntOrString and ResourceQuantity, and handle null values in YAML converters * feat: implement equality members for ResourceQuantity class
This commit is contained in:
@@ -35,7 +35,7 @@ namespace k8s.Models
|
||||
public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer)
|
||||
{
|
||||
var obj = (ResourceQuantity)value;
|
||||
emitter?.Emit(new YamlDotNet.Core.Events.Scalar(obj.ToString()));
|
||||
emitter?.Emit(new YamlDotNet.Core.Events.Scalar(obj?.ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user