[dynamodb] resource is not synced, when Spec.AttributeDefinitions not sorted by ascii code order in manifest #1599
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
service/dynamodb
Indicates issues or PRs that are related to dynamodb-controller.
Describe the bug
when Spec.AttributeDefinitions are not sorted by ascii code, the resource is not synced.
Steps to reproduce
log from controller
2022-12-19T12:32:16.641Z INFO ackrt desired resource state has changed {"account": "*******", "role": "", "region": "eu-west-1", "kind": "Table", "namespace": "default", "name": "ack-demo", "is_adopted": false, "generation": 1, "diff": [{"Path":{"Parts":["Spec","AttributeDefinitions"]},"A":[{"attributeName":"id","attributeType":"S"},{"attributeName":"externalId","attributeType":"S"}],"B":[{"attributeName":"externalId","attributeType":"S"},{"attributeName":"id","attributeType":"S"}]}]}
format json:
Expected outcome
resource should be synced.
Environment
Kubernetes version: 1.23
EKS: 1.23
AWS service targeted: DynamoDB
DynamoDB controller: 0.1.7
I also see similar issue with GlobalSecondaryIndexes.indexName
The text was updated successfully, but these errors were encountered: