Skip to content

Commit

Permalink
Merge pull request #361 from annasong20/fix-validator-spacing
Browse files Browse the repository at this point in the history
Fix Validator output spacing #360
  • Loading branch information
k8s-ci-robot committed Nov 27, 2023
2 parents f6a5c89 + 7c36d62 commit d7eaf43
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -62,9 +60,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -98,9 +94,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -117,9 +111,7 @@ spec:
app: guestbook
tier: frontend
type: NodePort

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -138,9 +130,7 @@ spec:
app: redis
role: master
tier: backend

---

apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -62,9 +60,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -98,9 +94,7 @@ spec:
requests:
cpu: 100m
memory: 100Mi

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -117,9 +111,7 @@ spec:
app: guestbook
tier: frontend
type: NodePort

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -138,9 +130,7 @@ spec:
app: redis
role: master
tier: backend

---

apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/golden/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (v *validator) Validate(r declarative.Reconciler) {

for i, o := range objects.Items {
if i != 0 {
b.WriteString("\n---\n\n")
b.WriteString("---\n")
}
u := o.UnstructuredObject()
if err := yamlizer.Encode(u, &b); err != nil {
Expand Down

0 comments on commit d7eaf43

Please sign in to comment.