github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/fn-render/fnconfig-pkgfn-refers-subdir/.expected/diff.patch (about)

     1  diff --git a/Kptfile b/Kptfile
     2  index acf4d0a..bd4684c 100644
     3  --- a/Kptfile
     4  +++ b/Kptfile
     5  @@ -2,6 +2,8 @@ apiVersion: kpt.dev/v1
     6   kind: Kptfile
     7   metadata:
     8     name: app-with-db
     9  +  labels:
    10  +    tier: db
    11   pipeline:
    12     mutators:
    13       - image: gcr.io/kpt-fn/set-labels:v0.1.4
    14  diff --git a/confs/labelconfig.yaml b/confs/labelconfig.yaml
    15  index aabf495..6883bc2 100644
    16  --- a/confs/labelconfig.yaml
    17  +++ b/confs/labelconfig.yaml
    18  @@ -15,5 +15,7 @@ apiVersion: v1
    19   kind: ConfigMap
    20   metadata:
    21     name: label-config
    22  +  labels:
    23  +    tier: db
    24   data:
    25     tier: db
    26  diff --git a/resources.yaml b/resources.yaml
    27  index 7a494c9..d22aec8 100644
    28  --- a/resources.yaml
    29  +++ b/resources.yaml
    30  @@ -15,12 +15,23 @@ apiVersion: apps/v1
    31   kind: Deployment
    32   metadata:
    33     name: nginx-deployment
    34  +  labels:
    35  +    tier: db
    36   spec:
    37     replicas: 3
    38  +  selector:
    39  +    matchLabels:
    40  +      tier: db
    41  +  template:
    42  +    metadata:
    43  +      labels:
    44  +        tier: db
    45   ---
    46   apiVersion: custom.io/v1
    47   kind: Custom
    48   metadata:
    49     name: custom
    50  +  labels:
    51  +    tier: db
    52   spec:
    53     image: nginx:1.2.3