Skip to content

Commit

Permalink
Merge pull request #1967 from wotolom/glue-crawler-lateinit-new-field
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterMX authored Dec 11, 2023
2 parents 685d467 + 9f1f855 commit 58a9f38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/controller/glue/crawler/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ func lateInitialize(spec *svcapitypes.CrawlerParameters, resp *svcsdk.GetCrawler

spec.Configuration = pointer.LateInitialize(spec.Configuration, resp.Crawler.Configuration)

if spec.LakeFormationConfiguration == nil {
spec.LakeFormationConfiguration = &svcapitypes.LakeFormationConfiguration{}
}
spec.LakeFormationConfiguration.AccountID = pointer.LateInitialize(spec.LakeFormationConfiguration.AccountID, resp.Crawler.LakeFormationConfiguration.AccountId)
spec.LakeFormationConfiguration.UseLakeFormationCredentials = pointer.LateInitialize(spec.LakeFormationConfiguration.UseLakeFormationCredentials, resp.Crawler.LakeFormationConfiguration.UseLakeFormationCredentials)

if spec.LineageConfiguration == nil {
spec.LineageConfiguration = &svcapitypes.LineageConfiguration{}
}
Expand Down

0 comments on commit 58a9f38

Please sign in to comment.