From 531fb6d0f05813e3b04af860a938074597794225 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Wed, 24 Jun 2026 13:34:35 +0300 Subject: [PATCH] ++ bump sanitizer-multi image and enable fk gate - workflowtemplate-multi: image infra_4079fdcf -> infra_68ef2cee - enable run_fk_integrity_validation by default, add run_fk_orphan_prune param - cronworkflow-multi: same fk param defaults for when it is resumed Co-Authored-By: Claude Opus 4.8 --- infrastructure/pg-sanitizer/base/cronworkflow-multi.yaml | 4 +++- .../pg-sanitizer/base/workflowtemplate-multi.yaml | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/infrastructure/pg-sanitizer/base/cronworkflow-multi.yaml b/infrastructure/pg-sanitizer/base/cronworkflow-multi.yaml index dafd66b..84d1965 100644 --- a/infrastructure/pg-sanitizer/base/cronworkflow-multi.yaml +++ b/infrastructure/pg-sanitizer/base/cronworkflow-multi.yaml @@ -26,9 +26,11 @@ spec: - name: reuse_base_databases value: "false" - name: run_fk_integrity_validation - value: "false" + value: "true" - name: fk_integrity_dbs value: "" + - name: run_fk_orphan_prune + value: "true" - name: bucket value: prod-pg-dumps - name: source_prefix diff --git a/infrastructure/pg-sanitizer/base/workflowtemplate-multi.yaml b/infrastructure/pg-sanitizer/base/workflowtemplate-multi.yaml index 983cbee..bbda7b8 100644 --- a/infrastructure/pg-sanitizer/base/workflowtemplate-multi.yaml +++ b/infrastructure/pg-sanitizer/base/workflowtemplate-multi.yaml @@ -39,9 +39,11 @@ spec: - name: reuse_base_databases value: "false" - name: run_fk_integrity_validation - value: "false" + value: "true" - name: fk_integrity_dbs value: "" + - name: run_fk_orphan_prune + value: "true" - name: bucket value: prod-pg-dumps - name: source_prefix @@ -68,7 +70,7 @@ spec: value: sts effect: NoSchedule container: - image: cr.yandex/crp3ccidau046kdj8g9q/yc-pg-sanitizer-multi:infra_4079fdcf + image: cr.yandex/crp3ccidau046kdj8g9q/yc-pg-sanitizer-multi:infra_68ef2cee imagePullPolicy: IfNotPresent command: - /usr/local/bin/multi_company_sanitize_from_s3.sh @@ -89,6 +91,8 @@ spec: value: "{{workflow.parameters.run_fk_integrity_validation}}" - name: FK_INTEGRITY_DBS value: "{{workflow.parameters.fk_integrity_dbs}}" + - name: RUN_FK_ORPHAN_PRUNE + value: "{{workflow.parameters.run_fk_orphan_prune}}" - name: S3_BUCKET value: "{{workflow.parameters.bucket}}" - name: SOURCE_PREFIX