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

     1  diff --git a/Kptfile b/Kptfile
     2  index 0bcb810..dcafc38 100644
     3  --- a/Kptfile
     4  +++ b/Kptfile
     5  @@ -2,6 +2,8 @@ apiVersion: kpt.dev/v1
     6   kind: Kptfile
     7   metadata:
     8     name: wordpress
     9  +  annotations:
    10  +    abc: def
    11   pipeline:
    12     mutators:
    13       - image: gcr.io/kpt-fn/set-annotations:v0.1.3
    14  diff --git a/mysql/Kptfile b/mysql/Kptfile
    15  index 78ee518..cda1359 100644
    16  --- a/mysql/Kptfile
    17  +++ b/mysql/Kptfile
    18  @@ -2,6 +2,9 @@ apiVersion: kpt.dev/v1
    19   kind: Kptfile
    20   metadata:
    21     name: mysql
    22  +  annotations:
    23  +    foo: bar
    24  +    abc: def
    25   pipeline:
    26     mutators:
    27       - image: gcr.io/kpt-fn/set-annotations:v0.1.3
    28  diff --git a/mysql/mysql-deployment.yaml b/mysql/mysql-deployment.yaml
    29  index 173c2e1..11cfcb0 100644
    30  --- a/mysql/mysql-deployment.yaml
    31  +++ b/mysql/mysql-deployment.yaml
    32  @@ -18,8 +18,10 @@ metadata:
    33     labels:
    34       app: wordpress
    35     annotations:
    36  -    projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project}
    37  -    teamname: 'YOURTEAM' # kpt-set: ${teamname}
    38  +    projectId: PROJECT_ID # kpt-set: ${gcloud.core.project}
    39  +    teamname: YOURTEAM # kpt-set: ${teamname}
    40  +    foo: bar
    41  +    abc: def
    42   spec:
    43     selector:
    44       app: wordpress
    45  @@ -35,8 +37,10 @@ metadata:
    46     labels:
    47       app: wordpress
    48     annotations:
    49  -    projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project}
    50  -    teamname: 'YOURTEAM' # kpt-set: ${teamname}
    51  +    projectId: PROJECT_ID # kpt-set: ${gcloud.core.project}
    52  +    teamname: YOURTEAM # kpt-set: ${teamname}
    53  +    foo: bar
    54  +    abc: def
    55   spec:
    56     resources:
    57       requests:
    58  @@ -51,8 +55,10 @@ metadata:
    59     labels:
    60       app: wordpress
    61     annotations:
    62  -    projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project}
    63  -    teamname: 'YOURTEAM' # kpt-set: ${teamname}
    64  +    projectId: PROJECT_ID # kpt-set: ${gcloud.core.project}
    65  +    teamname: YOURTEAM # kpt-set: ${teamname}
    66  +    foo: bar
    67  +    abc: def
    68   spec:
    69     selector:
    70       matchLabels:
    71  @@ -63,6 +69,9 @@ spec:
    72         labels:
    73           app: wordpress
    74           tier: mysql
    75  +      annotations:
    76  +        foo: bar
    77  +        abc: def
    78       spec:
    79         containers:
    80           - name: mysql
    81  diff --git a/wordpress-deployment.yaml b/wordpress-deployment.yaml
    82  index f7bdc2a..f555993 100644
    83  --- a/wordpress-deployment.yaml
    84  +++ b/wordpress-deployment.yaml
    85  @@ -16,8 +16,9 @@ metadata:
    86     labels:
    87       app: wordpress
    88     annotations:
    89  -    projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project}
    90  -    teamname: 'YOURTEAM' # kpt-set: ${teamname}
    91  +    projectId: PROJECT_ID # kpt-set: ${gcloud.core.project}
    92  +    teamname: YOURTEAM # kpt-set: ${teamname}
    93  +    abc: def
    94   spec:
    95     type: LoadBalancer
    96     selector:
    97  @@ -33,8 +34,9 @@ metadata:
    98     labels:
    99       app: wordpress
   100     annotations:
   101  -    projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project}
   102  -    teamname: 'YOURTEAM' # kpt-set: ${teamname}
   103  +    projectId: PROJECT_ID # kpt-set: ${gcloud.core.project}
   104  +    teamname: YOURTEAM # kpt-set: ${teamname}
   105  +    abc: def
   106   spec:
   107     resources:
   108       requests:
   109  @@ -49,8 +51,9 @@ metadata:
   110     labels:
   111       app: wordpress
   112     annotations:
   113  -    projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project}
   114  -    teamname: 'YOURTEAM' # kpt-set: ${teamname}
   115  +    projectId: PROJECT_ID # kpt-set: ${gcloud.core.project}
   116  +    teamname: YOURTEAM # kpt-set: ${teamname}
   117  +    abc: def
   118   spec:
   119     selector:
   120       matchLabels:
   121  @@ -61,6 +64,8 @@ spec:
   122         labels:
   123           app: wordpress
   124           tier: frontend
   125  +      annotations:
   126  +        abc: def
   127       spec:
   128         containers:
   129           - name: wordpress