-
Notifications
You must be signed in to change notification settings - Fork 29
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
Seed image format version OCI image label #188
Conversation
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a great first step for a compatibility check, something we can build upon as we figure out what we'll need. And addresses a need we've seen multiple times.
de72c02
to
81b46a2
Compare
controllers/prep_handlers.go
Outdated
// the imager during the image build process, and is only manually bumped by | ||
// developers when the image format changes in a way that is incompatible with | ||
// previous versions of the lifecycle-agent. | ||
func (r *ImageBasedUpgradeReconciler) checkSeedImageCompatibility(ctx context.Context, pullSecretFilename string, seedImageRef string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter is failing:
func (r *ImageBasedUpgradeReconciler) checkSeedImageCompatibility(ctx context.Context, pullSecretFilename string, seedImageRef string) error { | |
// | |
//nolint:unparam | |
func (r *ImageBasedUpgradeReconciler) checkSeedImageCompatibility(ctx context.Context, pullSecretFilename, seedImageRef string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #200
/hold |
/unhold |
7feb363
to
e9defd5
Compare
/hold until testing is complete |
IBU reconciler now has a `checkSeedImageCompatibility` method that checks if the seed image is compatible with the current version of the lifecycle-agent. It does so by inspecting the OCI image's labels and checking if the specified format version equals the hard-coded one that this version of the lifecycle agent expects. That format version is set by the imager during the image build process, and is only manually bumped by developers when the image format changes in a way that is incompatible with previous versions of the lifecycle-agent.
Tested /unhold |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: browsell 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 |
IBU reconciler now has a
checkSeedImageCompatibility
method thatchecks if the seed image is compatible with the current version of the
lifecycle-agent. It does so by inspecting the OCI image's labels and
checking if the specified format version equals the hard-coded one that
this version of the lifecycle agent expects. That format version is set
by the imager during the image build process, and is only manually
bumped by developers when the image format changes in a way that is
incompatible with previous versions of the lifecycle-agent.