-
Notifications
You must be signed in to change notification settings - Fork 4
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
✨ Add image resolution policy #237
base: main
Are you sure you want to change the base?
Conversation
722776b
to
1179cb8
Compare
1179cb8
to
fd12eb9
Compare
fd12eb9
to
db70fe3
Compare
db70fe3
to
8c16977
Compare
8c16977
to
ce23e66
Compare
ce23e66
to
2f49162
Compare
2f49162
to
fc254ec
Compare
Update e2e test base image to 1.30.6
fc254ec
to
9b80185
Compare
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.
Some remarks only
test/e2e/capic_test.go
Outdated
@@ -121,3 +121,17 @@ var _ = Describe("Should be able to create a cluster with 1 control-plane using | |||
} | |||
}) | |||
}) | |||
|
|||
var _ = Describe("Should be able to create a cluster with 1 control-plane and 2 workers using an image selector", func() { |
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.
Is it okay with long e2e runs?
We already have cases; if you want, you can set the flavor to one of them.
Another suggestion would be to label test cases and control them with PR labels.
for example capmox, have something like this:
ionos-cloud/cluster-api-provider-proxmox#352 (comment)
But. the whole e2e topic is not related to this PR.
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.
i think both code paths (image id and image selector) should be covered. i changed the conformance tests to use image selectors, so i think this test case can be removed.
Quality Gate passedIssues Measures |
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.
LGTM
What is the purpose of this pull request/Why do we need it?
Users might want to update VM images without changing the Kubernetes version.
When using an image selector this currently requires removing labels from the old image and adding them to the new one.
I wanted to provide a better solution for this.
Issue #, if available:
Description of changes:
Add a new field
resolutionPolicy
to theimageSelector
. Currently only two values are allowedExact
andNewest
.Exact
maps to the current behavior and is the default.Newest
will use the newest entry (determined bycreatedDate
) from the set of matching images.Special notes for your reviewer:
Checklist: