Commit 0dad432
authored
Only return MetaObject from AWSResource.MetaObject() call (#184)
Issue #, if available: aws-controllers-k8s/community#937
Description of changes:
* For implementation of AWSResource.MetaObject, we were returning the complete resource.
* This change only returns 'ObjectMeta' from AWSResource which is the implementation of 'metav1.Object' inside resource struct
* returning only the relevant members helps in metadata comparison correctly with `ackcompare.MetaV1ObjectEqual`
---------------
* Unit tests successful
* Successful local kind e2e test for newly generated dynamodb controller
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent 9cebd89 commit 0dad432
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments