// NewCordonHelperFromRuntimeObject returns a new CordonHelper, or an error if given object is not a
// node or cannot be encoded as JSON
NewCordonHelperFromRuntimeObject returns a new CordonHelper, or an error if given object is not a
node or cannot be encoded as JSON
// NewCordonHelperFromRuntimeObject returns a new CordonHelper or an error if given object is not a // node or cannot be encoded as JSON
func NewCordonHelperFromRuntimeObject(nodeObject runtime.Object, scheme *runtime.Scheme, gvk schema.GroupVersionKind, desired DesiredCordonStatus) (*CordonHelper, error) {
	nodeObject, err := scheme.ConvertToVersion(nodeObject, gvk.GroupVersion())
	if err != nil {
		return nil, err
	}
	node, ok := nodeObject.(*corev1.Node)
	if !ok {
		return nil, fmt.Errorf("unexpected type %T", nodeObject)
	}
	return NewCordonHelper(node, desired), nil
}
func NewCordonHelperFromRuntimeObject ( nodeObject runtime . Object , scheme * runtime . Scheme , gvk schema . GroupVersionKind , desired DesiredCordonStatus ) ( * CordonHelper , error ) { nodeObject , err := scheme . ConvertToVersion ( nodeObject , gvk . GroupVersion ( ) ) if err != nil { return nil , err } node , ok := nodeObject . ( * corev1 . Node ) if ! ok { return nil , fmt . Errorf ( " " , nodeObject ) } return NewCordonHelper ( node , desired ) , nil }
NewCordonHelperFromRuntimeObject returns a new CordonHelper, or an error if given object is not a
node or cannot be encoded as JSON
NewCordonHelperFromRuntimeObject returns a new CordonHelper or an error if given object is not a node or cannot be encoded as JSON