nextcloud / nextcloud/helm

Resources specification missing for initContainers in template 'deployment.yaml'

Open
#165 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement good first issue
Dominant language
Go Template
Stars
534
Forks
314
Avg merge
42m
Merged PRs (30d)
1

Description

The template 'deployment.yaml' provides the possibility to specify resources for 'containers' as follows:

        resources:
{{ toYaml .Values.resources | indent 10 }}

The resources specification is missing for the 'initContainers'.
That's why the deployment fails in my environment due to:

Error creating: pods "nextcloud-56946775f-28snp" is forbidden: failed quota: xxx-resourcequota-yyyy: must specify cpu,memory

I can create a default k8s LimitRange, but that is just a bad workaround.

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 with the deployment.yaml template and compare the existing containers resource block with the initContainers section. Confirm how resource values are supplied for containers, then ensure the rendered deployment includes the required CPU and memory resources for initContainers. Done means the chart can satisfy a Kubernetes ResourceQuota without relying on a default LimitRange.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.