Closed hrak closed 6 months ago
I suggest we fix this before the release of 0.4.9 (since this is the sole reason we bumped the API), and also consider including #328 (to make the API version bump worthwhile) and #329 (cc @g-gaston )
Cc @vignesh-goutham since he was leading the api change
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/kind bug
What steps did you take and what happened: [A clear and concise description of what the bug is.]
The v1beta3 API version bump was created to solve an issue related to creationTimestamp being null in a serialization of a CloudStackMachineTemplate resource (See related issues #166 #176 #237)
The solution applied here is to completely remove the ObjectMeta field from the
CloudStackMachineTemplateSpec
struct, but this is not the right fix for this issue, and against API conventions.The main problem is that in v1beta1 and v1beta2,
CloudStackMachineTemplateSpec
is defined as this:while it should be defined as this:
Note the metav1 vs clusterv1 and removal of nullable. I've verified this in various other CAPI infra providers (CAPA, CAPZ).
clusterv1.ObjectMeta has been specifically introduced in CAPI to address this issue with
creationTimestamp
. See the elaborate comment at https://github.com/kubernetes-sigs/cluster-api/blob/36e9abaa070c0bb0dfbfc81d2e2795b245797db5/api/v1beta1/common_types.go#L271What did you expect to happen:
No complete removal of
ObjectMeta
inCloudStackMachineTemplateResource
.