Skip to content

[v0.16] - Deploy charts that define CRDs and use lookup (#5689) - #5710

Merged
0xavi0 merged 1 commit into
rancher:release/v0.16from
0xavi0:0.16-allow-deployment-lookup-and-crds
Sep 3, 2026
Merged

[v0.16] - Deploy charts that define CRDs and use lookup (#5689)#5710
0xavi0 merged 1 commit into
rancher:release/v0.16from
0xavi0:0.16-allow-deployment-lookup-and-crds

Conversation

@0xavi0

@0xavi0 0xavi0 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Backports: #5689
Refers to: #5709

* Deploy charts that define CRDs and use lookup

Charts that both declare CRDs in `crds/` and instantiate custom resources of
those kinds cannot be deployed when they also use the `lookup` function.
`lookup` forces a server-side dry run, and a server-side dry run does not
install `crds/`, so the rendered custom resources have no REST mapping yet and
Helm fails with `no matches for kind`.

The dry run is now skipped when the failure consists only of REST mapping
failures for kinds the chart itself declares in `crds/` (including its
dependencies'). The real install installs `crds/` before building the manifest,
so it validates the chart without hitting the chicken-and-egg problem. Any
other dry run failure is still reported as before, and template mode is
unaffected.

Refers to: rancher#5630
Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>

* Fix linter findings

Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>

* return all leaf errors

Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>

---------

Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
@0xavi0 0xavi0 added this to the v2.15.3 milestone Sep 2, 2026
@0xavi0 0xavi0 self-assigned this Sep 2, 2026
@0xavi0 0xavi0 added this to Fleet Sep 2, 2026
@0xavi0
0xavi0 marked this pull request as ready for review September 2, 2026 14:23
@0xavi0
0xavi0 requested a review from a team as a code owner September 2, 2026 14:23
@0xavi0
0xavi0 merged commit 775f813 into rancher:release/v0.16 Sep 3, 2026
23 checks passed
@github-project-automation github-project-automation Bot moved this to ✅ Done in Fleet Sep 3, 2026
@0xavi0 0xavi0 moved this from ✅ Done to Needs QA review in Fleet Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs QA review

Development

Successfully merging this pull request may close these issues.

2 participants