title: kubectl get -o yaml: is it possible to hide metadata.managedFields?
body: <p>Using kubectl version 1.18, on microk8s 1.18.3</p>
  
  <p>When getting a resource definition in yaml format. Example  <code>kubectl get pod/mypod-6f855c5fff-j8mrw -o yaml</code>. The output contains a section related to <a href="https://kubernetes.io/docs/reference/using-api/api-concepts/#field-management" rel="noreferrer">metadata.managedFields</a></p>
  
  <p>Is there a way to hide that <code>metadata.managedFields</code> to shorten the console output?</p>
  
  <p>Below is an example of output to better illustrate the question.</p>
  
  <pre><code>apiVersion: v1
  kind: Service
  metadata:
    annotations:
      kubectl.kubernetes.io/last-applied-configuration: |
        {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"productpage","service":"productpage"},"name":"productpage","namespace":"bookinfo"},"spec":{"ports":[{"name":"http","port":9080}],"selector":{"app":"productpage"}}}
    creationTimestamp: "2020-05-28T05:22:41Z"
    labels:
      app: productpage
      service: productpage
    managedFields:
    - apiVersion: v1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:annotations:
            .: {}
            f:kubectl.kubernetes.io/last-applied-configuration: {}
          f:labels:
            .: {}
            f:app: {}
            f:service: {}
        f:spec:
          f:ports:
            .: {}
            k:{"port":9080,"protocol":"TCP"}:
              .: {}
              f:name: {}
              f:port: {}
              f:protocol: {}
              f:targetPort: {}
          f:selector:
            .: {}
            f:app: {}
          f:sessionAffinity: {}
          f:type: {}
      manager: kubectl
      operation: Update
      time: "2020-05-28T05:22:41Z"
    name: productpage
    namespace: bookinfo
    resourceVersion: "121804"
    selfLink: /api/v1/namespaces/bookinfo/services/productpage
    uid: feb5a62b-8784-41d2-b104-bf6ebc4a2763
  spec:
    clusterIP: 10.152.183.9
    ports:
    - name: http
      port: 9080
      protocol: TCP
      targetPort: 9080
    selector:
      app: productpage
    sessionAffinity: None
    type: ClusterIP
  status:
    loadBalancer: {}
  </code></pre>