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
CFE-977,CFE-991: archive generation at the end of MirrorToDisk workflow #739
Conversation
This is done to anticipate instanciation of Archiver in the Executor.go. In fact, the cobra command context will only be available in the Run method. The calls to `archive.NewMirrorArchive` which are expected in methods Complete and PrepareComplete of the executor happen before Run, and therefore the context of the command isn't created yet. Therefore, we are moving the context argument from `NewImageBlobGatherer` and `NewMirrorArchive` into the methods `GatherBlobs` and `BuildArchive` respectively.
@sherine-k: This pull request references CFE-977 which is a valid jira issue. This pull request references CFE-991 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.15.0" version, but no target version was set. In response to this:
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/test-infra repository. |
@sherine-k: This pull request references CFE-977 which is a valid jira issue. This pull request references CFE-991 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.15.0" version, but no target version was set. In response to this:
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/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sherine-k The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adds the creation of an implementation of interface Archiver in the `Complete` method. Adds the call to Archiver.BuildArchive in `Run` for MirrorToDisk mode after the Batch workers have finished. Before building the archive, the local storage registry is stopped, so that we ensure that the cache folder is in a consistent state before we start archiving.
@sherine-k: This pull request references CFE-977 which is a valid jira issue. This pull request references CFE-991 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.15.0" version, but no target version was set. In response to this:
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/test-infra repository. |
@sherine-k: all tests passed! Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
/lgtm |
[ART PR BUILD NOTIFIER] This PR has been included in build oc-mirror-plugin-container-v4.15.0-202311281631.p0.g030f65e.assembly.stream for distgit oc-mirror-plugin. |
Description
Integrates previous PRs #734 into the MirrorToDisk workflow by
Fixes # CFE-991
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Expected Outcome
Control the tar contents: