From f6bb8de8465cc74debef2362d2a2bfd028cf129c Mon Sep 17 00:00:00 2001 From: Dmytro Matviichuk Date: Thu, 11 Dec 2025 22:49:03 +0100 Subject: [PATCH] fix(router): Exclude postgresql secrets if ExternalSecrets enabled --- charts/incubator/hyperswitch-app/Chart.yaml | 2 +- charts/incubator/hyperswitch-app/README.md | 2 +- charts/incubator/hyperswitch-app/templates/_envs.tpl | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/incubator/hyperswitch-app/Chart.yaml b/charts/incubator/hyperswitch-app/Chart.yaml index b74abc01..48f9f1c4 100644 --- a/charts/incubator/hyperswitch-app/Chart.yaml +++ b/charts/incubator/hyperswitch-app/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.16.0 description: Hyperswitch is a community-led, open payments switch designed to empower digital businesses by providing fast, reliable, and affordable access to the best payments infrastructure. name: hyperswitch-app type: application -version: 0.3.0-beta.3 +version: 0.3.0-beta.4 dependencies: - name: redis version: 18.6.1 diff --git a/charts/incubator/hyperswitch-app/README.md b/charts/incubator/hyperswitch-app/README.md index bb7c6bf3..03173dc8 100644 --- a/charts/incubator/hyperswitch-app/README.md +++ b/charts/incubator/hyperswitch-app/README.md @@ -2,7 +2,7 @@ Hyperswitch is a community-led, open payments switch designed to empower digital businesses by providing fast, reliable, and affordable access to the best payments infrastructure. -![Version: 0.3.0-beta.3](https://img.shields.io/badge/Version-0.3.0--beta.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square) +![Version: 0.3.0-beta.4](https://img.shields.io/badge/Version-0.3.0--beta.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square) # Deploy on Kubernetes using Helm diff --git a/charts/incubator/hyperswitch-app/templates/_envs.tpl b/charts/incubator/hyperswitch-app/templates/_envs.tpl index b08d0f0e..aafc8978 100644 --- a/charts/incubator/hyperswitch-app/templates/_envs.tpl +++ b/charts/incubator/hyperswitch-app/templates/_envs.tpl @@ -1,5 +1,6 @@ {{/* Define environment variables for PostgreSQL secrets */}} {{- define "postgresql.secrets.envs" -}} +{{- if not .Values.global.useExternalSecrets.enabled }} {{- if not .Values.server.configs.analytics.sqlx.password }} - name: ROUTER__ANALYTICS__SQLX__PASSWORD valueFrom: @@ -18,6 +19,7 @@ name: {{ include "postgresql.replica.password.secret" . }} key: {{ include "postgresql.replica.password.key" . }} {{- end -}} +{{- end }} {{/* Define environment variables for PostgreSQL secrets */}} {{- define "drainer.secrets.envs" -}}