jsonnet: do not include thanos field when not needed

Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
paulfantom 2021-02-10 12:06:10 +01:00
parent de2d1b5231
commit 30d3d5950d
No known key found for this signature in database
GPG Key ID: 12AE0185401674E7

View File

@ -274,7 +274,7 @@ function(params) {
runAsNonRoot: true,
fsGroup: 2000,
},
thanos: p.config.thanos,
[if std.objectHas(params, 'thanos') then 'thanos']: p.config.thanos,
},
},