Skip to content

Commit 8fb293a

Browse files
author
Simon Rüegg
authored
Merge pull request #6 from projectsyn/bump-thanos
Update dependencies
2 parents 957485a + 1f4a421 commit 8fb293a

File tree

6 files changed

+8
-51
lines changed

6 files changed

+8
-51
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
- Disable dashboards by default ([#1])
1818
- Upgrade to v0.18.0 ([#2])
19+
- Update dependencies ([#6])
1920

2021
### Fixed
2122

@@ -28,3 +29,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2829
[#3]: https://github.com/projectsyn/component-thanos/pulls/3
2930
[#4]: https://github.com/projectsyn/component-thanos/pulls/4
3031
[#5]: https://github.com/projectsyn/component-thanos/pulls/5
32+
[#6]: https://github.com/projectsyn/component-thanos/pulls/6

component/bucket.libsonnet

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,7 @@ local kube = import 'lib/kube.libjsonnet';
77
local inv = kap.inventory();
88
local params = inv.parameters.thanos;
99

10-
local bucket = thanos.bucket(params.commonConfig + params.bucket) {
11-
deployment+: {
12-
spec+: {
13-
template+: {
14-
spec+: {
15-
securityContext+: {
16-
runAsUser: 10001,
17-
},
18-
},
19-
},
20-
},
21-
},
22-
};
10+
local bucket = thanos.bucket(params.commonConfig + params.bucket);
2311

2412
if params.bucket.enabled then {
2513
['bucket/' + name]: bucket[name]

component/compactor.libsonnet

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,14 @@ local inv = kap.inventory();
88
local params = inv.parameters.thanos;
99

1010
local compactor = thanos.compact(params.commonConfig + params.compactor) {
11-
statefulSet+: {
12-
spec+: {
13-
template+: {
14-
spec+: {
15-
securityContext+: {
16-
runAsUser: 10001,
17-
},
18-
},
19-
},
20-
},
21-
},
2211
alerts+: kube._Object('monitoring.coreos.com/v1', 'PrometheusRule', 'thanos-compactor-alerts') {
2312
metadata+: {
2413
namespace: params.namespace,
2514
},
2615
spec+: {
2716
groups+:
2817
std.filter(
29-
function(group) group.name == 'thanos-compact.rules',
18+
function(group) group.name == 'thanos-compact',
3019
thanosMixin.prometheusAlerts.groups
3120
),
3221
},

component/query.libsonnet

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,14 @@ local params = inv.parameters.thanos;
1010
local query = thanos.query(params.commonConfig + params.query {
1111
[if params.store.enabled then 'stores']+: [ 'dnssrv+_grpc._tcp.thanos-store.%s.svc.cluster.local' % params.namespace ],
1212
}) {
13-
deployment+: {
14-
spec+: {
15-
template+: {
16-
spec+: {
17-
securityContext+: {
18-
runAsUser: 10001,
19-
},
20-
},
21-
},
22-
},
23-
},
2413
alerts+: kube._Object('monitoring.coreos.com/v1', 'PrometheusRule', 'thanos-query-alerts') {
2514
metadata+: {
2615
namespace: params.namespace,
2716
},
2817
spec+: {
2918
groups+:
3019
std.filter(
31-
function(group) group.name == 'thanos-query.rules',
20+
function(group) group.name == 'thanos-query',
3221
thanosMixin.prometheusAlerts.groups
3322
),
3423
},

component/store.libsonnet

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,14 @@ local inv = kap.inventory();
88
local params = inv.parameters.thanos;
99

1010
local store = thanos.store(params.commonConfig + params.store) {
11-
statefulSet+: {
12-
spec+: {
13-
template+: {
14-
spec+: {
15-
securityContext+: {
16-
runAsUser: 10001,
17-
},
18-
},
19-
},
20-
},
21-
},
2211
alerts+: kube._Object('monitoring.coreos.com/v1', 'PrometheusRule', 'thanos-store-alerts') {
2312
metadata+: {
2413
namespace: params.namespace,
2514
},
2615
spec+: {
2716
groups+:
2817
std.filter(
29-
function(group) group.name == 'thanos-store.rules',
18+
function(group) group.name == 'thanos-store',
3019
thanosMixin.prometheusAlerts.groups
3120
),
3221
},

jsonnetfile.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"subdir": "jsonnet/kube-thanos"
99
}
1010
},
11-
"version": "v0.17.0"
11+
"version": "24ddf6aef1b2302213e58891d60feae2b41c765f"
1212
},
1313
{
1414
"source": {
@@ -17,7 +17,7 @@
1717
"subdir": "mixin"
1818
}
1919
},
20-
"version": "v0.17.2"
20+
"version": "v0.18.0"
2121
}
2222
],
2323
"legacyImports": true

0 commit comments

Comments
 (0)