Split "extraVolumeMounts" into init and container mounts #337
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/init-and-runtime-mounts"
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?
Description of the change
This introduces two new settings
extraInitVolumeMounts
(1) andextraContainerVolumeMounts
(2). They deprecate theextraVolumeMounts
setting which is mounted into every container regardless of its use.The first new setting (1) will only be mounted into the init containers and is useful for additional preconfiguration files. The second one (2) will only be mounted into the actual runtime container of Gitea. That way users can override specific parts of the filesystem with customization templates or files in general.
Benefits
Mount points only effective during Gitea runtime, such as custom css or additional themes don't have to be mounted into the initialization phase anymore and therefore can't interfere with those scripts.
Possible drawbacks
If a mount point shall be provided to both container types (init and runtime container), it now requires duplicated mount point specification.
Applicable issues
Additional information
Although this is not a breaking change, it's still mentioned as major change.
The default values for
extraVolumes
andextraVolumeMounts
are change to empty arrays instead of null for consistency and easier handling.Checklist
values.yaml
and added to theREADME.md
using readme-generator-for-helmLGTM
@justusbunsi Thanks for the fix! Sorry that I had no time for testing but I believe that it will work :) It's an edge case anyhow and probably won't apply to too many people - but especially because of this, thanks for putting the time in!