From 666f1bc784daaa27e99f4ba873d06c33889b8b75 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Wed, 15 Apr 2026 14:07:48 +0300 Subject: [PATCH] add vault --- clusters/yc-k8s-test/infrastructure/patches/kafka.yaml | 7 +++++++ infrastructure/kafka/base/helmrelease.yaml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/clusters/yc-k8s-test/infrastructure/patches/kafka.yaml b/clusters/yc-k8s-test/infrastructure/patches/kafka.yaml index beaf427..a89064a 100644 --- a/clusters/yc-k8s-test/infrastructure/patches/kafka.yaml +++ b/clusters/yc-k8s-test/infrastructure/patches/kafka.yaml @@ -7,6 +7,13 @@ spec: interval: 5m timeout: 10m values: + defaultInitContainers: + prepareConfig: + extraInit: | + perl -0pi -e 's/password="\s*([^"\n]+)"/password="$1"/g' /config/server.properties + perl -0pi -e 's/user_controller_user="\s*([^"\n]+)"/user_controller_user="$1"/g' /config/server.properties + perl -0pi -e 's/user_inter_broker_user="\s*([^"\n]+)"/user_inter_broker_user="$1"/g' /config/server.properties + perl -0pi -e 's/node\.id=(\d+)ssl\.keystore\.key=/node.id=$1\nssl.keystore.key=/g' /config/server.properties global: imagePullSecrets: - regcred diff --git a/infrastructure/kafka/base/helmrelease.yaml b/infrastructure/kafka/base/helmrelease.yaml index e790872..f4181f8 100644 --- a/infrastructure/kafka/base/helmrelease.yaml +++ b/infrastructure/kafka/base/helmrelease.yaml @@ -8,7 +8,7 @@ spec: chart: spec: chart: kafka-contour - version: "0.1.12" + version: "0.1.13" sourceRef: kind: HelmRepository name: yc-oci-charts