Skip to content

fix(controller): resource lookup by reference in deployer#1400

Merged
frewilhelm merged 6 commits into
open-component-model:mainfrom
frewilhelm:fix-deployer-resource-lookup
Dec 12, 2025
Merged

fix(controller): resource lookup by reference in deployer#1400
frewilhelm merged 6 commits into
open-component-model:mainfrom
frewilhelm:fix-deployer-resource-lookup

Conversation

@frewilhelm

@frewilhelm frewilhelm commented Dec 12, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Currently, the deployer takes the cv from the resource-status which is a resolved cv if the resource was in a nested cv. However, the resource-reference is taken from the resource-spec. This could still contain the referencePath to the nested cv. Accordingly, the look-up will fail.

Which issue(s) this PR fixes

Fixes #1344

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
@github-actions github-actions Bot added kind/bugfix Bug size/xs Extra small labels Dec 12, 2025
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
@github-actions github-actions Bot added the size/m Medium label Dec 12, 2025
Comment thread kubernetes/controller/internal/controller/deployer/deployer_controller.go Outdated
Comment thread kubernetes/controller/internal/controller/deployer/deployer_controller.go Outdated
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
@frewilhelm frewilhelm marked this pull request as ready for review December 12, 2025 15:04
@frewilhelm frewilhelm requested a review from a team as a code owner December 12, 2025 15:04
@frewilhelm frewilhelm merged commit af980ef into open-component-model:main Dec 12, 2025
19 checks passed
@frewilhelm frewilhelm deleted the fix-deployer-resource-lookup branch March 30, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bugfix Bug size/m Medium size/xs Extra small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deployer API: failed to resolve resource reference: cannot resolve reference "name"="XXX"

3 participants