Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offline-updates: Allow specification of local ostree repo #439

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

detsch
Copy link
Member

@detsch detsch commented Oct 31, 2024

Allowing the specification of a local ostree repo during offline bundle creation is required when a custom ostree repo is in use (fiopush + fioctl targets add).

This PR also add a warning message if the ostree repo does not contain the expected hash.

@detsch
Copy link
Member Author

detsch commented Oct 31, 2024

@mike-sul please take a look. I can't add reviewers to the PR.

Copy link
Member

@vkhoroz vkhoroz left a comment

Choose a reason for hiding this comment

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

I defer the review to @mike-sul indeed.

Just recommending to use stdlib to a greater extent.

subcommands/targets/offline-update.go Outdated Show resolved Hide resolved
@detsch detsch force-pushed the detsch-add-ostree-repo-source branch from 47696c0 to 0ab88cd Compare November 4, 2024 23:38
@detsch detsch force-pushed the detsch-add-ostree-repo-source branch 3 times, most recently from f7f56c0 to 2a65e9f Compare November 11, 2024 21:00
@vkhoroz
Copy link
Member

vkhoroz commented Nov 12, 2024

@doanac I think it is worth to include this into the short-coming release too.
I mean, wait for this.
WDYT?

@doanac
Copy link
Member

doanac commented Nov 13, 2024

yes. we should include this

This option allows a local ostree repo to be specified as replacement
for the factory ostree repo when building the offline bundle.
This if required when a custom ostree repo was pushed with `fiopush` and
a target was was manually added referencing a hash from this custom
repo.

Signed-off-by: Andre Detsch <[email protected]>
When a target was manually added with `fioctl targets add`, it may
reference an ostree hash that is not included the factory's repo.
An offline bundle created in such condition would fail installation.

Signed-off-by: Andre Detsch <[email protected]>
@detsch detsch force-pushed the detsch-add-ostree-repo-source branch from 2a65e9f to 7725750 Compare November 13, 2024 14:10
@mike-sul
Copy link
Contributor

I think it is ready for merge.

@detsch detsch merged commit 8f5d958 into foundriesio:main Nov 14, 2024
8 checks passed
@detsch detsch deleted the detsch-add-ostree-repo-source branch November 14, 2024 13:37
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.

4 participants