Skip to content

Commit 16f0e20

Browse files
authored
fix Attribute-based delta comparisons (#382)
I had erroneously removed the delta comparison logic for attribute-based API fields. This adds them back to the compare.go generators. Signed-off-by: Jay Pipes <[email protected]> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 2d63e49 commit 16f0e20

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/generate/code/compare.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ func CompareResource(
121121
compareConfig = fieldConfig.Compare
122122
}
123123

124-
if fieldConfig != nil && fieldConfig.IsAttribute {
125-
// NOTE(jaypipes): We compare the Attributes collection
126-
// specially...
127-
continue
128-
}
129124
if compareConfig != nil && compareConfig.IsIgnored {
130125
continue
131126
}

0 commit comments

Comments
 (0)