Skip to content

Commit 536eaa8

Browse files
committed
fix array concatenation broken due to an extra level of composition
Signed-off-by: Michal Wasilewski <[email protected]>
1 parent db798a8 commit 536eaa8

9 files changed

+9
-27
lines changed

jsonnet/kube-thanos/kube-thanos-bucket-replicate.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ function(params) {
140140
},
141141
},
142142
] + (
143-
if std.length(tbr.config.extraEnv) > 0 then [
144-
tbr.config.extraEnv,
145-
] else []
143+
if std.length(tbr.config.extraEnv) > 0 then tbr.config.extraEnv else []
146144
),
147145
ports: [
148146
{ name: name, containerPort: tbr.config.ports[name] }

jsonnet/kube-thanos/kube-thanos-bucket.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ function(params) {
120120
},
121121
},
122122
] + (
123-
if std.length(tb.config.extraEnv) > 0 then [
124-
tb.config.extraEnv,
125-
] else []
123+
if std.length(tb.config.extraEnv) > 0 then tb.config.extraEnv else []
126124
),
127125
ports: [
128126
{ name: name, containerPort: tb.config.ports[name] }

jsonnet/kube-thanos/kube-thanos-compact.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ function(params) {
9494
},
9595
},
9696
] + (
97-
if std.length(tc.config.extraEnv) > 0 then [
98-
tc.config.extraEnv,
99-
] else []
97+
if std.length(tc.config.extraEnv) > 0 then tc.config.extraEnv else []
10098
),
10199
ports: [
102100
{ name: name, containerPort: tc.config.ports[name] }

jsonnet/kube-thanos/kube-thanos-query-frontend.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ function(params) {
181181
},
182182
},
183183
] + (
184-
if std.length(tqf.config.extraEnv) > 0 then [
185-
tqf.config.extraEnv,
186-
] else []
184+
if std.length(tqf.config.extraEnv) > 0 then tqf.config.extraEnv else []
187185
),
188186
ports: [
189187
{ name: name, containerPort: tqf.config.ports[name] }

jsonnet/kube-thanos/kube-thanos-query.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ function(params) {
152152
},
153153
},
154154
] + (
155-
if std.length(tq.config.extraEnv) > 0 then [
156-
tq.config.extraEnv,
157-
] else []
155+
if std.length(tq.config.extraEnv) > 0 then tq.config.extraEnv else []
158156
),
159157
ports: [
160158
{ name: port.name, containerPort: port.port }

jsonnet/kube-thanos/kube-thanos-receive-router.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ function(params) {
112112
},
113113
},
114114
] + (
115-
if std.length(tr.config.extraEnv) > 0 then [
116-
tr.config.extraEnv,
117-
] else []
115+
if std.length(tr.config.extraEnv) > 0 then tr.config.extraEnv else []
118116
),
119117
ports: [{ name: name, containerPort: tr.config.ports[name] } for name in std.objectFields(tr.config.ports)],
120118
volumeMounts: [{ name: 'hashring-config', mountPath: '/var/lib/thanos-receive' }],

jsonnet/kube-thanos/kube-thanos-receive.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ function(params) {
114114
} },
115115
}] else []
116116
) + (
117-
if std.length(tr.config.extraEnv) > 0 then [
118-
tr.config.extraEnv,
119-
] else []
117+
if std.length(tr.config.extraEnv) > 0 then tr.config.extraEnv else []
120118
),
121119
ports: [
122120
{ name: name, containerPort: tr.config.ports[name] }

jsonnet/kube-thanos/kube-thanos-rule.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ function(params) {
148148
},
149149
},
150150
] + (
151-
if std.length(tr.config.extraEnv) > 0 then [
152-
tr.config.extraEnv,
153-
] else []
151+
if std.length(tr.config.extraEnv) > 0 then tr.config.extraEnv else []
154152
),
155153
ports: [
156154
{ name: name, containerPort: tr.config.ports[name] }

jsonnet/kube-thanos/kube-thanos-store.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ function(params) {
118118
},
119119
},
120120
] + (
121-
if std.length(ts.config.extraEnv) > 0 then [
122-
ts.config.extraEnv,
123-
] else []
121+
if std.length(ts.config.extraEnv) > 0 then ts.config.extraEnv else []
124122
),
125123
ports: [
126124
{ name: name, containerPort: ts.config.ports[name] }

0 commit comments

Comments
 (0)