Massage test cases for kubeyaml
While kubeyaml does a good job of preserving comments and mostly a
good job or preserving whitespace, it does end up reindenting blocks,
and requoting string literals. Since these are still
meaning-preserving changes, remove them from consideration by cooking
the test cases a little.
@@ -149,7 +149,6 @@ spec:
metadata:
labels:
name: fluxy
- version: master-a000001
spec:
volumes:
- name: key
@@ -194,7 +193,6 @@ spec:
metadata:
labels:
name: fluxy
- version: "1234567"
spec:
volumes:
- name: key
@@ -230,7 +228,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: monitoring
- name: grafana # comment, and only one space
+ name: grafana # comment, and only one space indent
spec:
replicas: 1
template:
@@ -263,7 +261,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: monitoring
- name: grafana # comment, and only one space
+ name: grafana # comment, and only one space indent
spec:
replicas: 1
template:
@@ -515,7 +513,7 @@ spec:
labels:
name: authfe
annotations:
- prometheus.io.port: "8080"
+ prometheus.io.port: '8080'
spec:
# blank comment spacers in the following
containers:
