diff --git a/apis/repo/v1alpha1/zz_repository_terraformed.go b/apis/repo/v1alpha1/zz_repository_terraformed.go index 2a53cb2..bdcc1de 100755 --- a/apis/repo/v1alpha1/zz_repository_terraformed.go +++ b/apis/repo/v1alpha1/zz_repository_terraformed.go @@ -124,6 +124,7 @@ func (tr *Repository) LateInitialize(attrs []byte) (bool, error) { opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} opts = append(opts, resource.WithNameFilter("DefaultBranch")) opts = append(opts, resource.WithNameFilter("Private")) + opts = append(opts, resource.WithNameFilter("SecurityAndAnalysis")) li := resource.NewGenericLateInitializer(opts...) return li.LateInitialize(&tr.Spec.ForProvider, params) diff --git a/config/repository/config.go b/config/repository/config.go index fac10b7..09d89e0 100644 --- a/config/repository/config.go +++ b/config/repository/config.go @@ -8,7 +8,11 @@ func Configure(p *config.Provider) { r.ShortGroup = "repo" r.LateInitializer = config.LateInitializer{ - IgnoredFields: []string{"private", "default_branch", "securityAndAnalysis"}, + IgnoredFields: []string{ + "private", + "default_branch", + "security_and_analysis", + }, } }) }