Skip to content

Commit ac18e3c

Browse files
committed
Add annotation support for serviceaccount
1 parent 6328583 commit ac18e3c

15 files changed

+27
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ local defaults = {
4040
fsGroup: 65534,
4141
runAsUser: 65534,
4242
},
43+
44+
serviceAccountAnnotations:: {}
4345
};
4446

4547
function(params) {
@@ -82,6 +84,7 @@ function(params) {
8284
name: tbr.config.name,
8385
namespace: tbr.config.namespace,
8486
labels: tbr.config.commonLabels,
87+
annotations: tb.config.serviceAccountAnnotations,
8588
},
8689
},
8790

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ local defaults = {
3535
fsGroup: 65534,
3636
runAsUser: 65534,
3737
},
38+
39+
serviceAccountAnnotations:: {}
3840
};
3941

4042
function(params) {
@@ -77,6 +79,7 @@ function(params) {
7779
name: tb.config.name,
7880
namespace: tb.config.namespace,
7981
labels: tb.config.commonLabels,
82+
annotations: tb.config.serviceAccountAnnotations,
8083
},
8184
},
8285

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@
4545
fsGroup: 65534,
4646
runAsUser: 65534,
4747
},
48+
49+
serviceAccountAnnotations:: {}
4850
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function(params)
2626
name: config.name,
2727
namespace: config.namespace,
2828
labels: config.commonLabels,
29+
annotations: config.serviceAccountAnnotations,
2930
},
3031
},
3132

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function(params) {
4747
name: tc.config.name,
4848
namespace: tc.config.namespace,
4949
labels: tc.config.commonLabels,
50+
annotations: tc.config.serviceAccountAnnotations,
5051
},
5152
},
5253

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ local defaults = {
6464
fsGroup: 65534,
6565
runAsUser: 65534,
6666
},
67+
68+
serviceAccountAnnotations:: {}
6769
};
6870

6971
function(params) {
@@ -133,6 +135,7 @@ function(params) {
133135
name: tqf.config.name,
134136
namespace: tqf.config.namespace,
135137
labels: tqf.config.commonLabels,
138+
annotations: tqf.config.serviceAccountAnnotations,
136139
},
137140
},
138141

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ local defaults = {
4444
fsGroup: 65534,
4545
runAsUser: 65534,
4646
},
47+
serviceAccountAnnotations:: {}
4748
};
4849

4950
function(params) {
@@ -91,6 +92,7 @@ function(params) {
9192
name: tq.config.name,
9293
namespace: tq.config.namespace,
9394
labels: tq.config.commonLabels,
95+
annotations: tq.config.serviceAccountAnnotations,
9496
},
9597
},
9698

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@
5252
fsGroup: 65534,
5353
runAsUser: 65534,
5454
},
55+
56+
serviceAccountAnnotations:: {}
5557
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function(params)
2828
name: config.name,
2929
namespace: config.namespace,
3030
labels: config.commonLabels,
31+
annotations: config.serviceAccountAnnotations,
3132
},
3233
},
3334
hashrings: {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function(params) {
3939
name: tr.config.name + '-router',
4040
namespace: tr.config.namespace,
4141
labels: tr.routerLabels,
42+
annotations: tr.config.serviceAccountAnnotations,
4243
},
4344
},
4445

0 commit comments

Comments
 (0)