fix(mealie): The mealie's DB Variables are not conditionnal (#35962)

make postgres variables conditional

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [X] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code
- [ ] 📜 Documentation Changes

**🧪 How Has This Been Tested?**
I copied the chart and used it to deploy my version of mealie (in argocd
with helmfile plugin)

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made changes to the documentation
- [x] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning
- [X] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or
`fix(docs):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: PyRowMan <6388129+PyRowMan@users.noreply.github.com>
Signed-off-by: Alfred Göppel <43101280+alfi0812@users.noreply.github.com>
Co-authored-by: Alfred Göppel <43101280+alfi0812@users.noreply.github.com>
This commit is contained in:
PyRowMan
2025-06-05 09:09:26 +02:00
committed by GitHub
parent 12113350f0
commit 2ae4b390cc
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -35,5 +35,5 @@ sources:
- https://github.com/mealie-recipes/mealie
- https://github.com/truecharts/charts/tree/master/charts/stable/mealie
type: application
version: 24.9.0
version: 24.9.1
@@ -28,12 +28,14 @@ api:
data:
API_PORT: {{ .Values.service.main.ports.main.port | quote }}
{{/* Database */}}
{{- if .Values.cnpg.main.enabled }}
DB_ENGINE: "postgres"
POSTGRES_PORT: "5432"
POSTGRES_USER: {{ .Values.cnpg.main.user }}
POSTGRES_PASSWORD: {{ .Values.cnpg.main.creds.password | trimAll "\"" }}
POSTGRES_DB: {{ .Values.cnpg.main.database }}
POSTGRES_SERVER: {{ .Values.cnpg.main.creds.host }}
{{- end }}
{{/* User Defined */}}
{{/* General */}}
ALLOW_SIGNUP: {{ $api.general.allow_signup | quote }}
-1
View File
@@ -102,7 +102,6 @@ cnpg:
user: mealie
database: mealie
ingress:
main:
integrations: