You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, reported behavior is the intended behavior. In such cases, LateInitialize should be excluded from managementPolicies. initProvider design doc specifically gives EKS NodeGroup as an example for when LateInitialize management policy should be omitted in addition to specifying desiredSize in initProvider.
That being said, I must add that I'm not satisfied with this behavior. initProvider gives the illusion of being equivalent to ignore_changes in Terraform, yet it behaves differently. I've been bitten multiple times by this behavior and I've seen community members being puzzled by it.
I would be happy to contribute to efforts in changing initProvider behavior before it is promoted to GA.
We discussed this issue with @turkenf and @sergenyalcin off-channel. @turkenf stated that we had deviated from the standard way of disabling LateInitialize management policy in favor of disabling the late initialization in resource configuration when appropriate. The reason was the problems we had with GCP's NodePool resource. See crossplane-contrib/provider-upjet-gcp#600 for a recent instance.
@sergenyalcin reminded us of crossplane/upjet#407, which is a backwards-compatible way of disabling late initialization in resource configuration.
Is there an existing issue for this?
Affected Resource(s)
Resource MRs required to reproduce the bug
A NodeGroup with only
spec.initProvider.scalingConfig
(desired/initial/max size) but nospec.forProvider.scalingConfig
.Steps to Reproduce
NodeGroup
with onlyspec.initProvider.scalingConfig
but nospec.forProvider.scalingConfig
spec.forProvider.scalingConfig
What happened?
spec.forProvider.scalingConfig
late initialized with the values we provided inspec.initProvider.scalingConfig
This result in conflicts with the auto scalers where both are trying to desired node size.
Relevant Error Output Snippet
Crossplane Version
v1.16.0-up.1
Provider Version
v1.8.0
Kubernetes Version
No response
Kubernetes Distribution
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: