...

Text file src/k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-update-annotation/1.edited

Documentation: k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-update-annotation

     1# Please edit the object below. Lines beginning with a '#' will be ignored,
     2# and an empty file will abort the edit. If an error occurs while saving this file will be
     3# reopened with the relevant failures.
     4#
     5apiVersion: v1
     6kind: Service
     7metadata:
     8  annotations:
     9    kubectl.kubernetes.io/last-applied-configuration: |
    10      {"kind":"Service","apiVersion":"v1","metadata":{"name":"svc1","creationTimestamp":null,"labels":{"app":"svc1"}},"spec":{"ports":[{"name":"80","protocol":"TCP","port":80,"targetPort":80}],"selector":{"app":"svc1"},"type":"ClusterIP"},"status":{"loadBalancer":{}}}
    11  creationTimestamp: "2017-02-27T19:40:53Z"
    12  labels:
    13    app: svc1
    14    new-label: new-value
    15  name: svc1
    16  namespace: edit-test
    17  resourceVersion: "670"
    18  selfLink: /api/v1/namespaces/edit-test/services/svc1
    19  uid: a6c11186-fd24-11e6-b53c-480fcf4a5275
    20spec:
    21  clusterIP: 10.0.0.204
    22  ports:
    23  - name: "80"
    24    port: 80
    25    protocol: TCP
    26    targetPort: 80
    27  selector:
    28    app: svc1
    29  sessionAffinity: None
    30  type: ClusterIP
    31status:
    32  loadBalancer: {}

View as plain text