Skip to content

fix: apply KlusterletConfig to hosted mode clusters#1041

Draft
acm-agent[bot] wants to merge 1 commit intomainfrom
sfa/fix/ACM-32886
Draft

fix: apply KlusterletConfig to hosted mode clusters#1041
acm-agent[bot] wants to merge 1 commit intomainfrom
sfa/fix/ACM-32886

Conversation

@acm-agent
Copy link
Copy Markdown

@acm-agent acm-agent Bot commented Apr 17, 2026

Bug

https://redhat.atlassian.net/browse/ACM-32886

Root Cause

The Generate method in pkg/bootstrap/render.go explicitly ignored KlusterletConfig properties (including NodePlacement) when the installMode was InstallModeHosted or InstallModeSingletonHosted, falling back to empty values or ManagedCluster annotations.

Fix

Update the switch statement in Generate to parse KlusterletConfig for all valid install modes, not just Default and Singleton. This ensures that properties like NodePlacement and Registries are properly propagated to the Klusterlet CR in hosted mode.

Auto-generated

This draft PR was automatically generated by server-foundation-agent based on bug triage analysis.
Human review is required before merging.

Co-Authored-By: server-foundation-agent noreply@redhat.com

When the klusterlet installMode is InstallModeHosted or
InstallModeSingletonHosted, properties from KlusterletConfig (like
NodePlacement, Registries, PullSecret) were previously ignored. This
prevented nodePlacement from being applied to the registration-agent
and work-agent pods on the hosting cluster.

This commit updates the Generate method to parse these properties
from KlusterletConfig across all valid install modes.

Signed-off-by: acm-agent[bot] <acm-agent@noreply.local>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 17, 2026

Hi @acm-agent[bot]. Thanks for your PR.

I'm waiting for a stolostron member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 17, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: acm-agent[bot]
Once this PR has been reviewed and has the lgtm label, please assign elgnay for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants