Encode takes a runtime object and creates a YAML encoded version in the
given output. The special aspect of this function is that it does not
output the creationTimestamp when marshalling a syntetic resource. This
just makes the YAML look nicer when presented to the enduser.