Default values are not restored when removing custom values #356
Labels
No Label
has
backport
in progress
invalid
kind
breaking
kind
bug
kind
build
kind
dependency
kind
deployment
kind
docs
kind
enhancement
kind
feature
kind
lint
kind
proposal
kind
question
kind
refactor
kind
security
kind
testing
kind
translation
kind
ui
need
backport
priority
critical
priority
low
priority
maybe
priority
medium
reviewed
duplicate
reviewed
invalid
reviewed
wontfix
skip-changelog
status
blocked
status
needs-feedback
status
needs-reviews
status
wip
upstream
gitea
upstream
other
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/helm-chart#356
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've got bitten by the following behavior recently and I think this might be something the helm chart could (eventually) take care of:
app.ini
that is different from the defaultsAt this point I would expect the value to be removed from
app.ini
. Instead it stays inapp.ini
(after (2)) and is (silently) applied to the instance.In particular I found out about this via
service.ENABLE_BASIC_AUTHENTICATION
while going crazy why user/pass auth did not work for git auth.I finally found that in my
app.ini
in the running instance there wasENABLE_BASIC_AUTHENTICATION=false
set even though this setting was not applied in the helm chart values (anymore) and it defaults toTRUE
actually.I could then reproduce the behavior from above. In fact the only thing that helped was manually entering the pod and deleting
ENABLE_BASIC_AUTHENTICATION = false
to get rid of it. An alternative is to actively set it back to the default again.In summary: removing an
app.ini
that was once changed does not restore it's default. Looks like a bug to me? Should be easily reproducible for others using the description above.TODO list for fixing this: (probably incomplete)
additionalConfigSources
I've reproduced it a few times in the past. To me it seems like a regression from #239. Prior to this PR the app.ini got fully recreated. Now it persists to keep some important immutable settings. I see two ways to fix this:
The second one would require a migration to extract those values from app.ini, if not provided via values.yaml. Which sounds like we would need option 1 to get 2. ?
Changing the category as this behavior is a regression of #239.