github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/live-plan/create/config.yaml (about)

     1  # Copyright 2021 Google LLC
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #      http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  parallel: true
    16  
    17  kptArgs:
    18    - "live"
    19    - "plan"
    20  
    21  stdOut: |
    22    apiVersion: config.kubernetes.io/v1
    23    kind: ResourceList
    24    items:
    25    - apiVersion: config.google.com/v1alpha1
    26      kind: Plan
    27      metadata:
    28        name: plan
    29      spec:
    30        actions:
    31        - action: ApplyCreate
    32          kind: ConfigMap
    33          name: foo
    34          namespace: create
    35          after:
    36            object:
    37              apiVersion: v1
    38              data:
    39                key: value
    40              kind: ConfigMap
    41              metadata:
    42                annotations:
    43                  config.k8s.io/owning-inventory: create
    44                creationTimestamp: "<TIMESTAMP>"
    45                managedFields:
    46                - apiVersion: v1
    47                  fieldsType: FieldsV1
    48                  fieldsV1:
    49                    f:data:
    50                      f:key: {}
    51                    f:metadata:
    52                      f:annotations:
    53                        f:config.k8s.io/owning-inventory: {}
    54                  manager: kubectl
    55                  operation: Apply
    56                  time: "<TIMESTAMP>"
    57                name: foo
    58                namespace: create
    59                uid: <UID>
    60  
    61