uralkal: pm — один блок deployment в патчах backend и celery

Второй ключ deployment в патче отбрасывался, и args из оверлея не применялись:
/vault/secrets/pm-kafka инжектился, но не source-ился, pm ходил в Kafka с
дефолтными user/password. makemigrations из оверлея не включён.
This commit is contained in:
ivan 2026-11-02 15:31:18 +05:00
parent 7cacd5a03f
commit 7b6a285741
2 changed files with 8 additions and 11 deletions

View File

@ -9,16 +9,15 @@ spec:
values:
services:
backend:
deployment:
resources:
requests:
cpu: null
memory: null
image:
name:
_default: cr.yandex/crp3ccidau046kdj8g9q/pm-backend:production_fa0f1551
deployment:
resources:
requests:
cpu: null
memory: null
args:
_default:
- |
@ -28,7 +27,6 @@ spec:
[ -f /vault/secrets/pm-s3 ] && . /vault/secrets/pm-s3
[ -f /vault/secrets/pm-kafka ] && . /vault/secrets/pm-kafka
set +a
python manage.py makemigrations pm --noinput
python manage.py migrate
exec /opt/sarex/entrypoint.sh
envs:

View File

@ -15,11 +15,6 @@ spec:
values:
services:
celery:
deployment:
resources:
requests:
cpu: null
memory: null
# Образ общий с backend — держать в одной версии обязательно,
# иначе воркер разъедется с API по схеме задач и моделям.
image:
@ -29,6 +24,10 @@ spec:
# base не переопределяет args, а нам нужно добавить sourcing pm-kafka —
# дублируем скрипт целиком (то же самое, что и в backend.yaml).
deployment:
resources:
requests:
cpu: null
memory: null
args:
_default:
- |