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

     1  diff --git a/Kptfile b/Kptfile
     2  index 9092fbf..dd65206 100644
     3  --- a/Kptfile
     4  +++ b/Kptfile
     5  @@ -2,6 +2,9 @@ apiVersion: kpt.dev/v1
     6   kind: Kptfile
     7   metadata:
     8     name: app-with-db
     9  +  namespace: staging
    10  +  labels:
    11  +    tier: db
    12   pipeline:
    13     mutators:
    14       - image: gcr.io/kpt-fn/set-namespace:v0.1.3
    15  diff --git a/db/Kptfile b/db/Kptfile
    16  index 8c0fd51..fa4480f 100644
    17  --- a/db/Kptfile
    18  +++ b/db/Kptfile
    19  @@ -2,6 +2,10 @@ apiVersion: kpt.dev/v1
    20   kind: Kptfile
    21   metadata:
    22     name: db
    23  +  namespace: staging
    24  +  labels:
    25  +    app: backend
    26  +    tier: db
    27   pipeline:
    28     mutators:
    29       - image: gcr.io/kpt-fn/set-namespace:v0.1.3
    30  diff --git a/db/resources.yaml b/db/resources.yaml
    31  index ac1fd96..49fa8df 100644
    32  --- a/db/resources.yaml
    33  +++ b/db/resources.yaml
    34  @@ -15,5 +15,18 @@ apiVersion: apps/v1
    35   kind: StatefulSet
    36   metadata:
    37     name: db
    38  +  namespace: staging
    39  +  labels:
    40  +    app: backend
    41  +    tier: db
    42   spec:
    43     replicas: 3
    44  +  selector:
    45  +    matchLabels:
    46  +      app: backend
    47  +      tier: db
    48  +  template:
    49  +    metadata:
    50  +      labels:
    51  +        app: backend
    52  +        tier: db
    53  diff --git a/resources.yaml b/resources.yaml
    54  index 7a494c9..ac4edf8 100644
    55  --- a/resources.yaml
    56  +++ b/resources.yaml
    57  @@ -15,12 +15,25 @@ apiVersion: apps/v1
    58   kind: Deployment
    59   metadata:
    60     name: nginx-deployment
    61  +  namespace: staging
    62  +  labels:
    63  +    tier: db
    64   spec:
    65     replicas: 3
    66  +  selector:
    67  +    matchLabels:
    68  +      tier: db
    69  +  template:
    70  +    metadata:
    71  +      labels:
    72  +        tier: db
    73   ---
    74   apiVersion: custom.io/v1
    75   kind: Custom
    76   metadata:
    77     name: custom
    78  +  namespace: staging
    79  +  labels:
    80  +    tier: db
    81   spec:
    82     image: nginx:1.2.3