fix(etesync): respect config changes after initial deploy (#15080)

**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 an issue where configuration changes in the UI (or for that matter
anywhere from outside the container) don't get applied. Solution was to
set the
[undocumented](a590669c35/context/entrypoint.sh (L298C54-L298C63))
`REGEN_INI` flag to `true` to regenerate the `.ini` file on every
startup.

**⚙️ 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

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->
Tested on my personal system using the `Extra Environment Variables`
configuration option.

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

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [x] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

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

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ 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: Codec <37117573+Jet132@users.noreply.github.com>
Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Co-authored-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
This commit is contained in:
Codec 2023-12-20 15:18:44 +01:00 committed by GitHub
parent 685bc01da9
commit 84c79ab38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
kubeVersion: '>=1.24.0-0'
apiVersion: v2
name: etesync
version: 5.0.13
version: 5.1.0
appVersion: 0.11.0
description: Secure, end-to-end encrypted, and privacy respecting sync for your contacts, calendars, tasks and notes.
home: https://truecharts.org/charts/stable/etesync

View File

@ -23,7 +23,13 @@ questions:
schema:
additional_attrs: true
type: dict
attrs:
attrs: REGEN_INI:
- variable: REGEN_INI
label: "Always recreate Config"
description: "This ensures that everytime you restart the program it recreates the config file"
schema:
type: boolean
default: true
- variable: ALLOWED_HOSTS
label: "ALLOWED_HOSTS"
description: "Must be a valid domain or * (* is not recommended for production)"

View File

@ -28,6 +28,7 @@ workload:
type: tcp
env:
PORT: "{{ .Values.service.main.ports.main.port }}"
REGEN_INI: true
# App
SERVER: http
AUTO_UPDATE: true