Closed stevendborrelli closed 2 months ago
Thank you for reporting this, @stevendborrelli. There are two main points on this issue:
As you reported, this minimal[1] example manifest causes this type of issue. Because, for some resources, we calculate the instanceDiff
as nil
if we do not pass anything in the resource schema. And it causes this issue. What does we do not pass anything in the resource schema
mean? This means that if there is not any required field in our CRD schema, if we do not inject any tags to the resource (because this resource does not have a tags
field in its schema), and if we also do not inject any identifier field (like name
) then we observe this issue:
No required field in CRD schema AND No injected identifier field AND No injected non-identifier field
.
This fix will handle this type of problem.
It seems that there is a required field in the resource schema. Because of this, is a reference field, it is not a required one in our CRD. In other words, this manifest is not valid in terms of functionality. However, the important thing is that since the provider panics, we fail before reaching this input validation phase. Therefore, fixing this issue you have caught is critical. The real problem will become visible with the above fix: InvalidParameter: 1 validation error(s) found. minimum field size of 1, AttachLoadBalancerTargetGroupsInput.AutoScalingGroupName.
Thank you @sergenyalcin for the analysis & the fix. Here's a related issue to generate the CRD validation rules for the cross-resource reference fields.
This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale
. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh
will mark this issue as not stale.
This issue is being closed since there has been no activity for 14 days since marking it as stale
. If you still need help, feel free to comment or reopen the issue!
What happened?
When creating an autoscaling attachment with a minimal
forProvider
, the provider will crash with a nil pointer dereference:How can we reproduce it?
Use the following attachment file, which is accepted by the API server:
What environment did it happen in?