Add annotation support for serviceaccount (#271)

This commit is contained in:
Dreampuf 2022-07-18 18:38:04 +08:00 committed by GitHub
parent 5d3901b773
commit f1928b820c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 45 additions and 0 deletions

View File

@ -21,6 +21,9 @@ We use *breaking* word for marking changes that are not backward compatible (rel
### Added
- [#263](https://github.com/thanos-io/kube-thanos/pull/263) Add support for stateless Rulers.
- [#271](https://github.com/thanos-io/kube-thanos/pull/271) Add annotation support for ServiceAccount.
### Fixed
## [v0.27.0](https://github.com/thanos-io/kube-thanos/tree/v0.27.0) (2022-07-07)

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: object-store-bucket-replicate
app.kubernetes.io/instance: thanos-bucket-replicate

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: object-store-bucket-debugging
app.kubernetes.io/instance: thanos-bucket

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: query-cache
app.kubernetes.io/instance: thanos-query-frontend

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: object-store-gateway
app.kubernetes.io/instance: thanos-store

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: object-store-gateway
app.kubernetes.io/instance: thanos-store

View File

@ -40,6 +40,8 @@ local defaults = {
fsGroup: 65534,
runAsUser: 65534,
},
serviceAccountAnnotations:: {},
};
function(params) {
@ -82,6 +84,7 @@ function(params) {
name: tbr.config.name,
namespace: tbr.config.namespace,
labels: tbr.config.commonLabels,
annotations: tbr.config.serviceAccountAnnotations,
},
},

View File

@ -35,6 +35,8 @@ local defaults = {
fsGroup: 65534,
runAsUser: 65534,
},
serviceAccountAnnotations:: {},
};
function(params) {
@ -77,6 +79,7 @@ function(params) {
name: tb.config.name,
namespace: tb.config.namespace,
labels: tb.config.commonLabels,
annotations: tb.config.serviceAccountAnnotations,
},
},

View File

@ -45,4 +45,6 @@
fsGroup: 65534,
runAsUser: 65534,
},
serviceAccountAnnotations:: {},
}

View File

@ -26,6 +26,7 @@ function(params)
name: config.name,
namespace: config.namespace,
labels: config.commonLabels,
annotations: config.serviceAccountAnnotations,
},
},

View File

@ -47,6 +47,7 @@ function(params) {
name: tc.config.name,
namespace: tc.config.namespace,
labels: tc.config.commonLabels,
annotations: tc.config.serviceAccountAnnotations,
},
},

View File

@ -64,6 +64,8 @@ local defaults = {
fsGroup: 65534,
runAsUser: 65534,
},
serviceAccountAnnotations:: {},
};
function(params) {
@ -133,6 +135,7 @@ function(params) {
name: tqf.config.name,
namespace: tqf.config.namespace,
labels: tqf.config.commonLabels,
annotations: tqf.config.serviceAccountAnnotations,
},
},

View File

@ -45,6 +45,7 @@ local defaults = {
fsGroup: 65534,
runAsUser: 65534,
},
serviceAccountAnnotations:: {},
};
function(params) {
@ -92,6 +93,7 @@ function(params) {
name: tq.config.name,
namespace: tq.config.namespace,
labels: tq.config.commonLabels,
annotations: tq.config.serviceAccountAnnotations,
},
},

View File

@ -52,4 +52,6 @@
fsGroup: 65534,
runAsUser: 65534,
},
serviceAccountAnnotations:: {},
}

View File

@ -28,6 +28,7 @@ function(params)
name: config.name,
namespace: config.namespace,
labels: config.commonLabels,
annotations: config.serviceAccountAnnotations,
},
},
hashrings: {

View File

@ -39,6 +39,7 @@ function(params) {
name: tr.config.name + '-router',
namespace: tr.config.namespace,
labels: tr.routerLabels,
annotations: tr.config.serviceAccountAnnotations,
},
},

View File

@ -45,6 +45,7 @@ function(params) {
name: tr.config.name,
namespace: tr.config.namespace,
labels: tr.config.commonLabels,
annotations: tr.config.serviceAccountAnnotations,
},
},

View File

@ -50,6 +50,8 @@ local defaults = {
fsGroup: 65534,
runAsUser: 65534,
},
serviceAccountAnnotations:: {},
};
function(params) {
@ -103,6 +105,7 @@ function(params) {
name: tr.config.name,
namespace: tr.config.namespace,
labels: tr.config.commonLabels,
annotations: tr.config.serviceAccountAnnotations,
},
},

View File

@ -74,4 +74,6 @@
fsGroup: 65534,
runAsUser: 65534,
},
serviceAccountAnnotations:: {},
}

View File

@ -25,6 +25,7 @@ function(params)
name: config.name,
namespace: config.namespace,
labels: config.commonLabels,
annotations: config.serviceAccountAnnotations,
},
},

View File

@ -59,6 +59,7 @@ function(params) {
name: ts.config.name,
namespace: ts.config.namespace,
labels: ts.config.commonLabels,
annotations: ts.config.serviceAccountAnnotations,
},
},

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive-ingestor

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: thanos-receive-router
app.kubernetes.io/instance: thanos-receive

View File

@ -1,6 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
annotations: {}
labels:
app.kubernetes.io/component: object-store-gateway
app.kubernetes.io/instance: thanos-store