Skip to content

Commit 8cce847

Browse files
Format output of render command (#1813)
1 parent d40e7de commit 8cce847

File tree

10 files changed

+170
-186
lines changed

10 files changed

+170
-186
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
diff --git a/resources.yaml b/resources.yaml
2-
index 7a494c9..c77c357 100644
2+
index 7a494c9..a9dd224 100644
33
--- a/resources.yaml
44
+++ b/resources.yaml
5-
@@ -14,13 +14,26 @@
6-
apiVersion: apps/v1
5+
@@ -15,12 +15,25 @@ apiVersion: apps/v1
76
kind: Deployment
87
metadata:
9-
+ labels:
10-
+ tier: backend
118
name: nginx-deployment
129
+ namespace: staging
10+
+ labels:
11+
+ tier: backend
1312
spec:
1413
replicas: 3
1514
+ selector:
@@ -23,9 +22,9 @@ index 7a494c9..c77c357 100644
2322
apiVersion: custom.io/v1
2423
kind: Custom
2524
metadata:
26-
+ labels:
27-
+ tier: backend
2825
name: custom
2926
+ namespace: staging
27+
+ labels:
28+
+ tier: backend
3029
spec:
3130
image: nginx:1.2.3
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
diff --git a/db/resources.yaml b/db/resources.yaml
2-
index ac1fd96..a6c12c6 100644
2+
index ac1fd96..49fa8df 100644
33
--- a/db/resources.yaml
44
+++ b/db/resources.yaml
5-
@@ -14,6 +14,19 @@
6-
apiVersion: apps/v1
5+
@@ -15,5 +15,18 @@ apiVersion: apps/v1
76
kind: StatefulSet
87
metadata:
8+
name: db
9+
+ namespace: staging
910
+ labels:
1011
+ app: backend
1112
+ tier: db
12-
name: db
13-
+ namespace: staging
1413
spec:
1514
replicas: 3
1615
+ selector:
@@ -23,17 +22,16 @@ index ac1fd96..a6c12c6 100644
2322
+ app: backend
2423
+ tier: db
2524
diff --git a/resources.yaml b/resources.yaml
26-
index 7a494c9..5b8e411 100644
25+
index 7a494c9..ac4edf8 100644
2726
--- a/resources.yaml
2827
+++ b/resources.yaml
29-
@@ -14,13 +14,26 @@
30-
apiVersion: apps/v1
28+
@@ -15,12 +15,25 @@ apiVersion: apps/v1
3129
kind: Deployment
3230
metadata:
33-
+ labels:
34-
+ tier: db
3531
name: nginx-deployment
3632
+ namespace: staging
33+
+ labels:
34+
+ tier: db
3735
spec:
3836
replicas: 3
3937
+ selector:
@@ -47,9 +45,9 @@ index 7a494c9..5b8e411 100644
4745
apiVersion: custom.io/v1
4846
kind: Custom
4947
metadata:
50-
+ labels:
51-
+ tier: db
5248
name: custom
5349
+ namespace: staging
50+
+ labels:
51+
+ tier: db
5452
spec:
55-
image: nginx:1.2.3
53+
image: nginx:1.2.3
Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
diff --git a/db/deployment_httpbin.yaml b/db/deployment_httpbin.yaml
22
new file mode 100644
3-
index 0000000..2bf91c8
3+
index 0000000..0932111
44
--- /dev/null
55
+++ b/db/deployment_httpbin.yaml
66
@@ -0,0 +1,25 @@
77
+apiVersion: apps/v1
88
+kind: Deployment
99
+metadata:
10+
+ name: httpbin
11+
+ namespace: staging
1012
+ labels:
1113
+ app: backend
1214
+ tier: db
13-
+ name: httpbin
14-
+ namespace: staging
1515
+spec:
1616
+ replicas: 4
1717
+ selector:
@@ -25,23 +25,22 @@ index 0000000..2bf91c8
2525
+ tier: db
2626
+ spec:
2727
+ containers:
28-
+ - image: kennethreitz/httpbin
29-
+ name: httpbin
28+
+ - name: httpbin
29+
+ image: kennethreitz/httpbin
3030
+ ports:
3131
+ - containerPort: 9876
3232
diff --git a/db/resources.yaml b/db/resources.yaml
33-
index ac1fd96..a6c12c6 100644
33+
index ac1fd96..49fa8df 100644
3434
--- a/db/resources.yaml
3535
+++ b/db/resources.yaml
36-
@@ -14,6 +14,19 @@
37-
apiVersion: apps/v1
36+
@@ -15,5 +15,18 @@ apiVersion: apps/v1
3837
kind: StatefulSet
3938
metadata:
39+
name: db
40+
+ namespace: staging
4041
+ labels:
4142
+ app: backend
4243
+ tier: db
43-
name: db
44-
+ namespace: staging
4544
spec:
4645
replicas: 3
4746
+ selector:
@@ -54,17 +53,16 @@ index ac1fd96..a6c12c6 100644
5453
+ app: backend
5554
+ tier: db
5655
diff --git a/resources.yaml b/resources.yaml
57-
index 7a494c9..5b8e411 100644
56+
index 7a494c9..ac4edf8 100644
5857
--- a/resources.yaml
5958
+++ b/resources.yaml
60-
@@ -14,13 +14,26 @@
61-
apiVersion: apps/v1
59+
@@ -15,12 +15,25 @@ apiVersion: apps/v1
6260
kind: Deployment
6361
metadata:
64-
+ labels:
65-
+ tier: db
6662
name: nginx-deployment
6763
+ namespace: staging
64+
+ labels:
65+
+ tier: db
6866
spec:
6967
replicas: 3
7068
+ selector:
@@ -78,9 +76,9 @@ index 7a494c9..5b8e411 100644
7876
apiVersion: custom.io/v1
7977
kind: Custom
8078
metadata:
81-
+ labels:
82-
+ tier: db
8379
name: custom
8480
+ namespace: staging
81+
+ labels:
82+
+ tier: db
8583
spec:
86-
image: nginx:1.2.3
84+
image: nginx:1.2.3
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
diff --git a/resources.yaml b/resources.yaml
2-
index 7a494c9..c77c357 100644
2+
index 7a494c9..a9dd224 100644
33
--- a/resources.yaml
44
+++ b/resources.yaml
5-
@@ -14,13 +14,26 @@
6-
apiVersion: apps/v1
5+
@@ -15,12 +15,25 @@ apiVersion: apps/v1
76
kind: Deployment
87
metadata:
9-
+ labels:
10-
+ tier: backend
118
name: nginx-deployment
129
+ namespace: staging
10+
+ labels:
11+
+ tier: backend
1312
spec:
1413
replicas: 3
1514
+ selector:
@@ -23,9 +22,9 @@ index 7a494c9..c77c357 100644
2322
apiVersion: custom.io/v1
2423
kind: Custom
2524
metadata:
26-
+ labels:
27-
+ tier: backend
2825
name: custom
2926
+ namespace: staging
27+
+ labels:
28+
+ tier: backend
3029
spec:
3130
image: nginx:1.2.3

e2e/testdata/fn-render/resource-deletion/.expected/diff.patch

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,16 @@ index 0ef5d14..0000000
4242
- - image: kennethreitz/httpbin
4343
- name: httpbin
4444
diff --git a/resources.yaml b/resources.yaml
45-
index 7a494c9..c77c357 100644
45+
index 7a494c9..a9dd224 100644
4646
--- a/resources.yaml
4747
+++ b/resources.yaml
48-
@@ -14,13 +14,26 @@
49-
apiVersion: apps/v1
48+
@@ -15,12 +15,25 @@ apiVersion: apps/v1
5049
kind: Deployment
5150
metadata:
52-
+ labels:
53-
+ tier: backend
5451
name: nginx-deployment
5552
+ namespace: staging
53+
+ labels:
54+
+ tier: backend
5655
spec:
5756
replicas: 3
5857
+ selector:
@@ -66,9 +65,9 @@ index 7a494c9..c77c357 100644
6665
apiVersion: custom.io/v1
6766
kind: Custom
6867
metadata:
69-
+ labels:
70-
+ tier: backend
7168
name: custom
7269
+ namespace: staging
70+
+ labels:
71+
+ tier: backend
7372
spec:
74-
image: nginx:1.2.3
73+
image: nginx:1.2.3

0 commit comments

Comments
 (0)