Skip to content

Conversation

squ94wk
Copy link
Contributor

@squ94wk squ94wk commented Jul 15, 2025

BREAKING CHANGE: Change config.sync.toHost.pods.rewriteHosts.initContainer.image from string to struct.

What issue type does this pull request address? (keep at least one, remove the others)
/kind feature

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
This changes the config for the "rewriteHosts" feature to be in line with other places.
The init container will now also use the config.controlPlane.advanced.defaultRegistry.

Please provide a short message that should be published in the vcluster release notes
Allow to use a custom registry for the rewriteHosts init container.
BREAKING CHANGE: replaced the config string sync.toHost.pods.rewriteHosts.initContainer.image with object that takes registry, repository, tag.

What else do we need to know?

@squ94wk squ94wk marked this pull request as draft July 15, 2025 14:11
@squ94wk squ94wk force-pushed the ENG-6911_init-container-image branch 2 times, most recently from 3d34bcc to 42723c2 Compare July 15, 2025 14:39
@squ94wk squ94wk marked this pull request as ready for review July 15, 2025 15:14
@squ94wk squ94wk requested a review from a team July 15, 2025 15:15
zerbitx
zerbitx previously approved these changes Jul 15, 2025
Copy link
Contributor

@zerbitx zerbitx left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@FabianKramm FabianKramm left a comment

Choose a reason for hiding this comment

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

I think the PR looks good, but shouldn't we consider reusing the vCluster image as the init container as that would simplify the setup in air-gapped?

BREAKING CHANGE: Change config.sync.toHost.pods.rewriteHosts.initContainer.image from string to struct.
@squ94wk squ94wk force-pushed the ENG-6911_init-container-image branch from 42723c2 to 1865378 Compare July 17, 2025 13:33
@squ94wk squ94wk force-pushed the ENG-6911_init-container-image branch from 1865378 to 623cff9 Compare July 17, 2025 13:39
@FabianKramm FabianKramm merged commit 57dbb51 into loft-sh:main Jul 17, 2025
33 checks passed
@squ94wk squ94wk deleted the ENG-6911_init-container-image branch July 17, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants