fix(helm): fix invalid YAML syntax and nil pointer in values.yaml#5990
fix(helm): fix invalid YAML syntax and nil pointer in values.yaml#5990mergify[bot] merged 1 commit intoceph:develfrom
Conversation
nixpanic
left a comment
There was a problem hiding this comment.
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?
- proper commit summary formatting (not
fix(helm)but justhelm) - 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.
b931bb1 to
c123af6
Compare
|
@KeshavSoni2511 Can you address the commitlint and DCO CI failures? |
|
Hi @KeshavSoni2511 , the only thing missing here is the Thanks! |
Done, Please review |
|
Gentle Reminder!! |
|
/test ci/centos/mini-e2e-helm/k8s-1.35/rbd |
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
Merge Queue Status
This pull request spent 5 hours 59 minutes 29 seconds in the queue, with no time running CI. Required conditions to merge
ReasonThe merge conditions cannot be satisfied due to failing checks HintYou may have to fix your CI before adding the pull request to the queue again. |
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>
Merge Queue Status
This pull request spent 7 seconds in the queue, including 1 second running CI. Required conditions to merge
|
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."