Incorrect fix for ObjectMeta issue in CloudStackMachineTemplateResource in v1beta3 API #331
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Milestone
/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
.The text was updated successfully, but these errors were encountered: