-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
kcp looses rolloutStrategy field data when upgraded from v1alpha3 to v1alpha4 #5236
Comments
/area api |
/area control-plane |
/area api |
@sadysnaat Nice finding, thx. The issue is probably that we didn't add the rolloutStrategy to the v1alpha3 structs on the main branch (aka v0.4.x). I suspect Kubernetes prunes the rolloutStrategy field before calling the conversion webhook. Can you try if the CRD in #5237 solves the issue? EDIT: I'll test it myself first > Looks like it works. I went through our clusterctl e2e test. |
/assign @fabriziopandini @vincepri If my theory is correct, we should go over all our v1alpha3 types on main and compare them with the ones in release-0.3, WDYT? |
I diffed kcp, kbpk, core and docker and the only other diff is that we we're missing a few constants in api/v1alpha3/{common_types.go,condition_consts.go} on main compared to release-0.3 @vincepri @fabriziopandini Should we add them? |
@sadysnaat I tested the following with our e2e tests. current main:
#5237
|
Yes, please |
/milestone v0.4 |
What steps did you take and what happened:
create kind cluster
clusterctl init # Release binary v0.3.23
apply kcp
get kcp to verify the field data
upgrade crd to v0.4.2
by
clusterctl4 upgrade apply --contract v1alpha4 #clusterctl4 is Release 0.4.2 binary
What did you expect to happen:
I would expect kcp to still contain rolloutstrategy but
As
spec.infrastructureTemplate
is translated tospec.machineTemplate
I would expectrolloutStrategy
to not be removed
Anything else you would like to add:
No
Environment:
kubectl version
):/etc/os-release
): 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64/kind bug
/area api
/area controlplane
The text was updated successfully, but these errors were encountered: