Closed josecastillolema closed 1 year ago
/triage accepted
I tested this out on the 1.3 branch and the same error exists there. It seems to be related to the marshalling of the creationTimestamp
. Manually changing it from "null"
to null
(without quotations) in the manifests fixed the issue.
I'll try to find a fix for this when generating the CRDs.
/assign
Looks like: https://github.com/kubernetes-sigs/kustomize/issues/5031
Looks like an issue between kubebuilder - which adds CreationTimeStamp: null
- and kustomize - which transforms it to CreationTimeStamp: "null"
.
Let me try to figure out if we can get an upstream fix for this, or if we can remediate in CAPI.
@killianmuldoon I think we should modify cmd/clusterctl/hack/create-local-repository.py to use kustomize from hack/bin directory, so we use a well know version
I thin kustomize changed to render null instead of dropping it recently. Maybe that's related.
Pinning to the local kustomize version - 4.5.2 - works to solve this. I'll open an issue about updating to kustomize 5. It looks like there might be a few issues to tackle.
What steps did you take and what happened?
What did you expect to happen?
For the
clusterctl init
command to succeedCluster API version
Kubernetes version
Anything else you would like to add?
Could it be related to failed applied CustomResourceDefinitions containing integer validation rules using server-side apply? Something similar to https://cloud.google.com/kubernetes-engine/docs/release-notes#June_25_2021
Label(s) to be applied
/kind bug One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.