Skip to content

Commit

Permalink
fix array concatenation broken due to an extra level of composition
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Wasilewski <[email protected]>
  • Loading branch information
mwasilew2 committed Sep 27, 2021
1 parent db798a8 commit 536eaa8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 27 deletions.
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-bucket-replicate.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ function(params) {
},
},
] + (
if std.length(tbr.config.extraEnv) > 0 then [
tbr.config.extraEnv,
] else []
if std.length(tbr.config.extraEnv) > 0 then tbr.config.extraEnv else []
),
ports: [
{ name: name, containerPort: tbr.config.ports[name] }
Expand Down
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-bucket.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ function(params) {
},
},
] + (
if std.length(tb.config.extraEnv) > 0 then [
tb.config.extraEnv,
] else []
if std.length(tb.config.extraEnv) > 0 then tb.config.extraEnv else []
),
ports: [
{ name: name, containerPort: tb.config.ports[name] }
Expand Down
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-compact.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ function(params) {
},
},
] + (
if std.length(tc.config.extraEnv) > 0 then [
tc.config.extraEnv,
] else []
if std.length(tc.config.extraEnv) > 0 then tc.config.extraEnv else []
),
ports: [
{ name: name, containerPort: tc.config.ports[name] }
Expand Down
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-query-frontend.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ function(params) {
},
},
] + (
if std.length(tqf.config.extraEnv) > 0 then [
tqf.config.extraEnv,
] else []
if std.length(tqf.config.extraEnv) > 0 then tqf.config.extraEnv else []
),
ports: [
{ name: name, containerPort: tqf.config.ports[name] }
Expand Down
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-query.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ function(params) {
},
},
] + (
if std.length(tq.config.extraEnv) > 0 then [
tq.config.extraEnv,
] else []
if std.length(tq.config.extraEnv) > 0 then tq.config.extraEnv else []
),
ports: [
{ name: port.name, containerPort: port.port }
Expand Down
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-receive-router.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ function(params) {
},
},
] + (
if std.length(tr.config.extraEnv) > 0 then [
tr.config.extraEnv,
] else []
if std.length(tr.config.extraEnv) > 0 then tr.config.extraEnv else []
),
ports: [{ name: name, containerPort: tr.config.ports[name] } for name in std.objectFields(tr.config.ports)],
volumeMounts: [{ name: 'hashring-config', mountPath: '/var/lib/thanos-receive' }],
Expand Down
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-receive.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ function(params) {
} },
}] else []
) + (
if std.length(tr.config.extraEnv) > 0 then [
tr.config.extraEnv,
] else []
if std.length(tr.config.extraEnv) > 0 then tr.config.extraEnv else []
),
ports: [
{ name: name, containerPort: tr.config.ports[name] }
Expand Down
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-rule.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ function(params) {
},
},
] + (
if std.length(tr.config.extraEnv) > 0 then [
tr.config.extraEnv,
] else []
if std.length(tr.config.extraEnv) > 0 then tr.config.extraEnv else []
),
ports: [
{ name: name, containerPort: tr.config.ports[name] }
Expand Down
4 changes: 1 addition & 3 deletions jsonnet/kube-thanos/kube-thanos-store.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ function(params) {
},
},
] + (
if std.length(ts.config.extraEnv) > 0 then [
ts.config.extraEnv,
] else []
if std.length(ts.config.extraEnv) > 0 then ts.config.extraEnv else []
),
ports: [
{ name: name, containerPort: ts.config.ports[name] }
Expand Down

0 comments on commit 536eaa8

Please sign in to comment.