Skip to content

Commit c770085

Browse files
author
SurbhiAgarwal1
committed
Add new expected diff.patch files for fn-eval tests
1 parent 200e0f6 commit c770085

File tree

4 files changed

+422
-0
lines changed

4 files changed

+422
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
diff --git a/resources.yaml b/resources.yaml
2+
index 9d1f786..f2eec52 100755
3+
--- a/resources.yaml
4+
+++ b/resources.yaml
5+
@@ -1,26 +1,26 @@
6+
-# Copyright 2021 The kpt Authors
7+
-#
8+
-# Licensed under the Apache License, Version 2.0 (the "License");
9+
-# you may not use this file except in compliance with the License.
10+
-# You may obtain a copy of the License at
11+
-#
12+
-# http://www.apache.org/licenses/LICENSE-2.0
13+
-#
14+
-# Unless required by applicable law or agreed to in writing, software
15+
-# distributed under the License is distributed on an "AS IS" BASIS,
16+
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
-# See the License for the specific language governing permissions and
18+
-# limitations under the License.
19+
-apiVersion: apps/v1
20+
-kind: Deployment
21+
-metadata:
22+
- name: nginx-deployment
23+
-spec:
24+
- replicas: 3
25+
----
26+
-apiVersion: custom.io/v1
27+
-kind: Custom
28+
-metadata:
29+
- name: custom
30+
-spec:
31+
- image: nginx:1.2.3
32+
+# Copyright 2021 The kpt Authors
33+
+#
34+
+# Licensed under the Apache License, Version 2.0 (the "License");
35+
+# you may not use this file except in compliance with the License.
36+
+# You may obtain a copy of the License at
37+
+#
38+
+# http://www.apache.org/licenses/LICENSE-2.0
39+
+#
40+
+# Unless required by applicable law or agreed to in writing, software
41+
+# distributed under the License is distributed on an "AS IS" BASIS,
42+
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43+
+# See the License for the specific language governing permissions and
44+
+# limitations under the License.
45+
+apiVersion: apps/v1
46+
+kind: Deployment
47+
+metadata:
48+
+ name: nginx-deployment
49+
+spec:
50+
+ replicas: 3
51+
+---
52+
+apiVersion: custom.io/v1
53+
+kind: Custom
54+
+metadata:
55+
+ name: custom
56+
+spec:
57+
+ image: nginx:1.2.3
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
diff --git a/resources.yaml b/resources.yaml
2+
index 9d1f786..f2eec52 100755
3+
--- a/resources.yaml
4+
+++ b/resources.yaml
5+
@@ -1,26 +1,26 @@
6+
-# Copyright 2021 The kpt Authors
7+
-#
8+
-# Licensed under the Apache License, Version 2.0 (the "License");
9+
-# you may not use this file except in compliance with the License.
10+
-# You may obtain a copy of the License at
11+
-#
12+
-# http://www.apache.org/licenses/LICENSE-2.0
13+
-#
14+
-# Unless required by applicable law or agreed to in writing, software
15+
-# distributed under the License is distributed on an "AS IS" BASIS,
16+
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
-# See the License for the specific language governing permissions and
18+
-# limitations under the License.
19+
-apiVersion: apps/v1
20+
-kind: Deployment
21+
-metadata:
22+
- name: nginx-deployment
23+
-spec:
24+
- replicas: 3
25+
----
26+
-apiVersion: custom.io/v1
27+
-kind: Custom
28+
-metadata:
29+
- name: custom
30+
-spec:
31+
- image: nginx:1.2.3
32+
+# Copyright 2021 The kpt Authors
33+
+#
34+
+# Licensed under the Apache License, Version 2.0 (the "License");
35+
+# you may not use this file except in compliance with the License.
36+
+# You may obtain a copy of the License at
37+
+#
38+
+# http://www.apache.org/licenses/LICENSE-2.0
39+
+#
40+
+# Unless required by applicable law or agreed to in writing, software
41+
+# distributed under the License is distributed on an "AS IS" BASIS,
42+
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43+
+# See the License for the specific language governing permissions and
44+
+# limitations under the License.
45+
+apiVersion: apps/v1
46+
+kind: Deployment
47+
+metadata:
48+
+ name: nginx-deployment
49+
+spec:
50+
+ replicas: 3
51+
+---
52+
+apiVersion: custom.io/v1
53+
+kind: Custom
54+
+metadata:
55+
+ name: custom
56+
+spec:
57+
+ image: nginx:1.2.3
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
diff --git a/resources.yaml b/resources.yaml
2+
index c0974f0..60f96f2 100755
3+
--- a/resources.yaml
4+
+++ b/resources.yaml
5+
@@ -1,82 +1,82 @@
6+
-# Copyright 2021 The kpt Authors
7+
-#
8+
-# Licensed under the Apache License, Version 2.0 (the "License");
9+
-# you may not use this file except in compliance with the License.
10+
-# You may obtain a copy of the License at
11+
-#
12+
-# http://www.apache.org/licenses/LICENSE-2.0
13+
-#
14+
-# Unless required by applicable law or agreed to in writing, software
15+
-# distributed under the License is distributed on an "AS IS" BASIS,
16+
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
-# See the License for the specific language governing permissions and
18+
-# limitations under the License.
19+
-apiVersion: apps/v1
20+
-kind: Deployment
21+
-metadata:
22+
- name: my-nginx
23+
- namespace: my-space
24+
- labels:
25+
- env: dev
26+
- foo: bar
27+
-spec:
28+
- # comment 1
29+
- replicas: 3
30+
- selector:
31+
- # comment 2
32+
- matchLabels: # comment 3
33+
- # comment 4
34+
- app: nginx # comment 5
35+
- template:
36+
- metadata:
37+
- labels:
38+
- app: nginx
39+
- spec:
40+
- # comment 6
41+
- containers:
42+
- # comment 7
43+
- - name: nginx
44+
- image: 'nginx:1.14.2' # comment 8
45+
- ports:
46+
- # comment 9
47+
- - containerPort: 80 # comment 10
48+
----
49+
-apiVersion: v1
50+
-kind: Service
51+
-metadata:
52+
- name: my-service
53+
-spec:
54+
- ports:
55+
- # comment 1
56+
- - name: etcd-server-ssl
57+
- port: 2380
58+
- # comment 2
59+
- - name: etcd-client-ssl
60+
- port: 2379
61+
----
62+
-apiVersion: constraints.gatekeeper.sh/v1beta1
63+
-kind: EnforceFoo
64+
-metadata:
65+
- name: enforce-foo
66+
-spec:
67+
- parameters:
68+
- naming_rules:
69+
- - kind: Folder
70+
- patterns:
71+
- # comment 1
72+
- - ^(dev|prod|staging|qa|shared)$
73+
----
74+
-apiVersion: v1
75+
-kind: ConfigMap
76+
-metadata:
77+
- name: setters-config
78+
-data:
79+
- # This should be the name of your Config Controller instance
80+
- cluster-name: cluster-name
81+
- # This should be the project where you deployed Config Controller
82+
- project-id: project-id
83+
- project-number: '1234567890123'
84+
- # You can leave these defaults
85+
- namespace: config-control
86+
- deployment-repo: deployment-repo
87+
- source-repo: source-repo
88+
+# Copyright 2021 The kpt Authors
89+
+#
90+
+# Licensed under the Apache License, Version 2.0 (the "License");
91+
+# you may not use this file except in compliance with the License.
92+
+# You may obtain a copy of the License at
93+
+#
94+
+# http://www.apache.org/licenses/LICENSE-2.0
95+
+#
96+
+# Unless required by applicable law or agreed to in writing, software
97+
+# distributed under the License is distributed on an "AS IS" BASIS,
98+
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
99+
+# See the License for the specific language governing permissions and
100+
+# limitations under the License.
101+
+apiVersion: apps/v1
102+
+kind: Deployment
103+
+metadata:
104+
+ name: my-nginx
105+
+ namespace: my-space
106+
+ labels:
107+
+ env: dev
108+
+ foo: bar
109+
+spec:
110+
+ # comment 1
111+
+ replicas: 3
112+
+ selector:
113+
+ # comment 2
114+
+ matchLabels: # comment 3
115+
+ # comment 4
116+
+ app: nginx # comment 5
117+
+ template:
118+
+ metadata:
119+
+ labels:
120+
+ app: nginx
121+
+ spec:
122+
+ # comment 6
123+
+ containers:
124+
+ # comment 7
125+
+ - name: nginx
126+
+ image: 'nginx:1.14.2' # comment 8
127+
+ ports:
128+
+ # comment 9
129+
+ - containerPort: 80 # comment 10
130+
+---
131+
+apiVersion: v1
132+
+kind: Service
133+
+metadata:
134+
+ name: my-service
135+
+spec:
136+
+ ports:
137+
+ # comment 1
138+
+ - name: etcd-server-ssl
139+
+ port: 2380
140+
+ # comment 2
141+
+ - name: etcd-client-ssl
142+
+ port: 2379
143+
+---
144+
+apiVersion: constraints.gatekeeper.sh/v1beta1
145+
+kind: EnforceFoo
146+
+metadata:
147+
+ name: enforce-foo
148+
+spec:
149+
+ parameters:
150+
+ naming_rules:
151+
+ - kind: Folder
152+
+ patterns:
153+
+ # comment 1
154+
+ - ^(dev|prod|staging|qa|shared)$
155+
+---
156+
+apiVersion: v1
157+
+kind: ConfigMap
158+
+metadata:
159+
+ name: setters-config
160+
+data:
161+
+ # This should be the name of your Config Controller instance
162+
+ cluster-name: cluster-name
163+
+ # This should be the project where you deployed Config Controller
164+
+ project-id: project-id
165+
+ project-number: '1234567890123'
166+
+ # You can leave these defaults
167+
+ namespace: config-control
168+
+ deployment-repo: deployment-repo
169+
+ source-repo: source-repo

0 commit comments

Comments
 (0)