You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend GoTag configuration to nested fields and attributes (#487)
Building upon the introduced `GoTag` configuration in 3753ca3, this
commit expands the functionality to cover nested fields and attributes.
Now users will be able to set custom Go Tags for nested fields using
JSONPath style directives. e.g:
```yaml
resources:
AccessEntries:
fields:
AccessPolicies.AccessScope.Type:
go_tag: json:"type,omitempty"
```
This patch also refactors `updateTypeDefAttributeWithReference` function
to reuse the code for finding and mutating Attribute objects.
Tested with eks-controller (`AccessPolicies.AccessScope.Type`).
Signed-off-by: Amine Hilaly <[email protected]>
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
0 commit comments