Skip to content

Commit c02a01e

Browse files
authored
feat: add same labels to all replicators (#308)
1 parent faf6946 commit c02a01e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

etl-api/src/k8s_client.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ pub const TRUSTED_ROOT_CERT_KEY_NAME: &str = "trusted_root_certs";
116116
const PG_PASSWORD_ENV_VAR_NAME: &str = "APP_PIPELINE__PG_CONNECTION__PASSWORD";
117117
const BIG_QUERY_SA_KEY_ENV_VAR_NAME: &str = "APP_DESTINATION__BIG_QUERY__SERVICE_ACCOUNT_KEY";
118118
pub const RESTARTED_AT_ANNOTATION_KEY: &str = "etl.supabase.com/restarted-at";
119+
const REPLICATOR_APP_LABEL: &str = "etl-replicator-app";
119120

120121
impl HttpK8sClient {
121122
pub async fn new() -> Result<HttpK8sClient, K8sError> {
@@ -330,13 +331,14 @@ impl K8sClient for HttpK8sClient {
330331
"replicas": 1,
331332
"selector": {
332333
"matchLabels": {
333-
"app": replicator_app_name
334+
"app-name": replicator_app_name,
334335
}
335336
},
336337
"template": {
337338
"metadata": {
338339
"labels": {
339-
"app": replicator_app_name
340+
"app-name": replicator_app_name,
341+
"app": REPLICATOR_APP_LABEL
340342
}
341343
},
342344
"spec": {

0 commit comments

Comments
 (0)