Merge pull request #3934 from yhrn/fix-json-sink

Sink: Force JSON encoding for .json files
This commit is contained in:
Kubernetes Prow Robot
2021-06-04 11:38:38 -07:00
committed by GitHub
5 changed files with 184 additions and 39 deletions

View File

@@ -87,8 +87,18 @@ metadata:
expectedFiles: func(d string) map[string]string {
return map[string]string{
"deployment.json": `
{"apiVersion": "apps/v1", "kind": "Deployment", "metadata": {"name": "foo", annotations: {
a-string-value: '', a-int-value: '0', a-bool-value: 'false'}}}
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"annotations": {
"a-bool-value": "false",
"a-int-value": "0",
"a-string-value": ""
},
"name": "foo"
}
}
`,
}
},