Closed MichaelHarden closed 1 week ago
I have faced the same issue with another resource.
I believe that documentation is not very clear, but you can overcome this issue by removing the LateInitialize
management policy.
Eventually figured this out. The way around this is to change the management policy on the MR to:
managementPolicies:
- "Create"
- "Update"
- "Delete"
- "Observe"
This allows for initProvider to not update the forProvider while also maintaining the forProvider's drift protection.
Is there an existing issue for this?
Affected Resource(s)
Resource MRs required to reproduce the bug
apiVersion: dynamodb.aws.upbound.io/v1beta1 kind: Table metadata: name: test-initprovider spec: forProvider: attribute:
Steps to Reproduce
What happened?
Since read and write capacity was set in the InitProvider and not ForProvider i would expect Crossplane to ignore future changes to these parameters. But, when changes are made to the read and write capacity, apart from the Crossplane MR, Crossplane continuously resets the values back.
Relevant Error Output Snippet
No response
Crossplane Version
v1.15.0
Provider Version
v1.3.1
Kubernetes Version
v1.28, v1.21
Kubernetes Distribution
K3D and EKS
Additional Info
No response