nextcloud / nextcloud/helm

Do not use subPath for config volumeMounts

Open
#247 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Persistence
Dominant language
Go Template
Stars
534
Forks
314
Avg merge
42m
Merged PRs (30d)
1

Description

As is very briefly mentioned in the docs, kubernetes unfortunately does not support automatically updating volumes mounted with subPath when the underlying ConfigMap changes. This can cause quite the trouble when trying do upgrade Nextcloud via GitOps with configs supplied via Helm values.

https://github.com/nextcloud/helm/blob/21ab410aff551adae8ba1f961f344ba43066e243/charts/nextcloud/templates/deployment.yaml#L264

Perhaps we could find a solution that mounts the ConfigMap in its entirety to a directory?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Kubernetes documentation on ConfigMap updates and inspecting charts/nextcloud/templates/deployment.yaml around line 264. Determine how the config volumeMount uses subPath and evaluate a directory-based mount approach; done means ConfigMap changes can update the mounted configuration during upgrades.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.