github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/fn-eval/fn-source/include-meta-resources/.expected/diff.patch (about)

     1  diff --git a/out/Kptfile b/out/Kptfile
     2  new file mode 100644
     3  index 0000000..4fad916
     4  --- /dev/null
     5  +++ b/out/Kptfile
     6  @@ -0,0 +1,9 @@
     7  +apiVersion: kpt.dev/v1
     8  +kind: Kptfile
     9  +metadata:
    10  +  name: app
    11  +  namespace: staging
    12  +pipeline:
    13  +  mutators:
    14  +    - image: gcr.io/kpt-fn/set-labels:v0.1.4
    15  +      configPath: labelconfig.yaml
    16  diff --git a/out/labelconfig.yaml b/out/labelconfig.yaml
    17  new file mode 100644
    18  index 0000000..f3a8b49
    19  --- /dev/null
    20  +++ b/out/labelconfig.yaml
    21  @@ -0,0 +1,20 @@
    22  +# Copyright 2021 Google LLC
    23  +#
    24  +# Licensed under the Apache License, Version 2.0 (the "License");
    25  +# you may not use this file except in compliance with the License.
    26  +# You may obtain a copy of the License at
    27  +#
    28  +#      http://www.apache.org/licenses/LICENSE-2.0
    29  +#
    30  +# Unless required by applicable law or agreed to in writing, software
    31  +# distributed under the License is distributed on an "AS IS" BASIS,
    32  +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    33  +# See the License for the specific language governing permissions and
    34  +# limitations under the License.
    35  +apiVersion: v1
    36  +kind: ConfigMap
    37  +metadata:
    38  +  name: label-config
    39  +  namespace: staging
    40  +data:
    41  +  tier: app
    42  diff --git a/out/resources.yaml b/out/resources.yaml
    43  new file mode 100644
    44  index 0000000..254b9cd
    45  --- /dev/null
    46  +++ b/out/resources.yaml
    47  @@ -0,0 +1,28 @@
    48  +# Copyright 2021 Google LLC
    49  +#
    50  +# Licensed under the Apache License, Version 2.0 (the "License");
    51  +# you may not use this file except in compliance with the License.
    52  +# You may obtain a copy of the License at
    53  +#
    54  +#      http://www.apache.org/licenses/LICENSE-2.0
    55  +#
    56  +# Unless required by applicable law or agreed to in writing, software
    57  +# distributed under the License is distributed on an "AS IS" BASIS,
    58  +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    59  +# See the License for the specific language governing permissions and
    60  +# limitations under the License.
    61  +apiVersion: apps/v1
    62  +kind: Deployment
    63  +metadata:
    64  +  name: nginx-deployment
    65  +  namespace: staging
    66  +spec:
    67  +  replicas: 3
    68  +---
    69  +apiVersion: custom.io/v1
    70  +kind: Custom
    71  +metadata:
    72  +  name: custom
    73  +  namespace: staging
    74  +spec:
    75  +  image: nginx:1.2.3