Skip to content

Commit 78ec5b0

Browse files
Fix/update table gsi (#87)
Issue #, if available: aws-controllers-k8s/community#1920 Description of changes: Fix error faced when creating a gsi for an existing table using already defined attributes. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 6f6cef2 commit 78ec5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/resource/table/hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func (rm *resourceManager) customUpdateTable(
223223
if err := rm.syncTableProvisionedThroughput(ctx, desired); err != nil {
224224
return nil, err
225225
}
226-
case delta.DifferentAt("Spec.GlobalSecondaryIndexes") && delta.DifferentAt("Spec.AttributeDefinitions"):
226+
case delta.DifferentAt("Spec.GlobalSecondaryIndexes"):
227227
if err := rm.syncTableGlobalSecondaryIndexes(ctx, latest, desired); err != nil {
228228
if awsErr, ok := ackerr.AWSError(err); ok &&
229229
awsErr.Code() == "LimitExceededException" {

0 commit comments

Comments
 (0)