Skip to content

fix(helm): fix invalid YAML syntax and nil pointer in values.yaml#5990

Merged
mergify[bot] merged 1 commit intoceph:develfrom
KeshavSoni2511:patch-1
Apr 1, 2026
Merged

fix(helm): fix invalid YAML syntax and nil pointer in values.yaml#5990
mergify[bot] merged 1 commit intoceph:develfrom
KeshavSoni2511:patch-1

Conversation

@KeshavSoni2511
Copy link
Copy Markdown
Contributor

@KeshavSoni2511 KeshavSoni2511 commented Jan 28, 2026

The template check for domainLabels evaluates empty arrays as truthy,
causing an invalid --domainlabels= flag to be generated. Fix by
checking that the array is both defined and non-empty before generating
the flag.

Keep domainLabels: [] in values.yaml for better user experience -
users can uncomment example values without needing to add the array
syntax back."

@mergify mergify bot added component/deployment Helm chart, kubernetes templates and configuration Issues/PRs bug Something isn't working labels Jan 28, 2026
Copy link
Copy Markdown
Member

@nixpanic nixpanic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @KeshavSoni2511, thanks for the PR.

Instead of setting domainLabels to an empty array, I think it would be more userfriendly to add a check for in the template. Users may just uncomment values for domainLabels, and miss that it is set to an empty array by default.

Could you also have a look at these two things?

  1. proper commit summary formatting (not fix(helm) but just helm)
  2. validate that this problems isn't there in the CephFS Helm chart

Once the commit is modified, force-push it to your branch so that there is a single clean commit and it can get reviewed/tested/merged.

@iPraveenParihar
Copy link
Copy Markdown
Contributor

@KeshavSoni2511 Can you address the commitlint and DCO CI failures?

@nixpanic
Copy link
Copy Markdown
Member

Hi @KeshavSoni2511 ,

the only thing missing here is the Signed-off-by: Real Name <email@ddre.ss> in the commit. You can add that by git commit --amend -s your commit and make sure you accept the terms of contributing as described in the DCO. After that, git push --force origin the change again.

Thanks!

@KeshavSoni2511
Copy link
Copy Markdown
Contributor Author

Hi @KeshavSoni2511 ,

the only thing missing here is the Signed-off-by: Real Name <email@ddre.ss> in the commit. You can add that by git commit --amend -s your commit and make sure you accept the terms of contributing as described in the DCO. After that, git push --force origin the change again.

Thanks!

Done, Please review

@KeshavSoni2511
Copy link
Copy Markdown
Contributor Author

Gentle Reminder!!

@Madhu-1 Madhu-1 requested a review from nixpanic March 30, 2026 05:00
@nixpanic
Copy link
Copy Markdown
Member

/test ci/centos/mini-e2e-helm/k8s-1.35/rbd

@nixpanic nixpanic requested a review from a team March 30, 2026 08:22
@iPraveenParihar
Copy link
Copy Markdown
Contributor

@Mergifyio rebase

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

rebase

✅ Branch has been successfully rebased

@nixpanic nixpanic added ci/skip/multi-arch-build skip building on multiple architectures ci/skip/e2e skip running e2e CI jobs labels Mar 31, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 31, 2026

Merge Queue Status

  • Entered queue2026-03-31 14:09 UTC · Rule: default
  • Checks started · in-place
  • 🚫 Left the queue2026-03-31 20:08 UTC · at e5cb2770cdae656717054a603c042fa75439a91f

This pull request spent 5 hours 59 minutes 29 seconds in the queue, with no time running CI.

Required conditions to merge

Reason

The merge conditions cannot be satisfied due to failing checks

Hint

You may have to fix your CI before adding the pull request to the queue again.
If you update this pull request, to fix the CI, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

@mergify mergify bot added the queued label Mar 31, 2026
The template check for domainLabels evaluates empty arrays as truthy,
causing an invalid --domainlabels= flag to be generated. Fix by
checking that the array is both defined and non-empty before generating
the flag.

Keep domainLabels: [] in values.yaml for better user experience -
users can uncomment example values without needing to add the array
syntax back.

Signed-off-by: KeshavSoni2511 <keshavsoni2511@gmail.com>
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 1, 2026

Merge Queue Status

  • Entered queue2026-04-01 07:47 UTC · Rule: default
  • Checks skipped · PR is already up-to-date
  • Merged2026-04-01 07:48 UTC · at e5cb2770cdae656717054a603c042fa75439a91f

This pull request spent 7 seconds in the queue, including 1 second running CI.

Required conditions to merge

@mergify mergify bot merged commit 057d55b into ceph:devel Apr 1, 2026
19 checks passed
@mergify mergify bot removed the dequeued label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-release-v3.16 bug Something isn't working ci/skip/e2e skip running e2e CI jobs ci/skip/multi-arch-build skip building on multiple architectures component/deployment Helm chart, kubernetes templates and configuration Issues/PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants