...

Text file src/k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-apply-edit-last-applied-list-fail/3.original

Documentation: k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-apply-edit-last-applied-list-fail

     1# Please edit the 'last-applied-configuration' annotations below.
     2# Lines beginning with a '#' will be ignored, and an empty file will abort the edit.
     3#
     4# The edited file had a syntax error: unable to get type info from the object "*unstructured.Unstructured": Object 'apiVersion' is missing in 'object has no apiVersion field'
     5#
     6apiVersion: v1
     7items:
     8- apiVersion: v1
     9  data:
    10    baz: qux
    11    foo: changed-value
    12    new-data: new-value
    13    new-data2: new-value
    14    new-data3: newivalue
    15  kind: ConfigMap
    16  metadata:
    17    annotations: {}
    18    name: cm1
    19    namespace: myproject
    20- kind: Service
    21  metadata:
    22    annotations: {}
    23    labels:
    24      app: svc1
    25      new-label: foo
    26      new-label2: foo2
    27    name: svc1
    28    namespace: myproject
    29  spec:
    30    ports:
    31    - name: "80"
    32      port: 82
    33      protocol: TCP
    34      targetPort: 81
    35    sessionAffinity: None
    36    type: ClusterIP
    37  status:
    38    loadBalancer: {}
    39kind: List
    40metadata: {}

View as plain text