Skip to content

Commit

Permalink
✨ experimental: Add policy migrations to bundles (#1461)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus authored Nov 4, 2024
1 parent 21637da commit b730fda
Show file tree
Hide file tree
Showing 5 changed files with 2,237 additions and 1,634 deletions.
245 changes: 235 additions & 10 deletions internal/bundle/bundle.yac.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions policy/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func Merge(a *Bundle, b *Bundle) *Bundle {
res.Queries = append(res.Queries, a.Queries...)
res.Frameworks = append(res.Frameworks, a.Frameworks...)
res.FrameworkMaps = append(res.FrameworkMaps, a.FrameworkMaps...)
res.MigrationGroups = append(res.MigrationGroups, a.MigrationGroups...)

// merge in b
res.Policies = append(res.Policies, b.Policies...)
Expand All @@ -132,6 +133,7 @@ func Merge(a *Bundle, b *Bundle) *Bundle {
res.Queries = append(res.Queries, b.Queries...)
res.Frameworks = append(res.Frameworks, b.Frameworks...)
res.FrameworkMaps = append(res.FrameworkMaps, b.FrameworkMaps...)
res.MigrationGroups = append(res.MigrationGroups, b.MigrationGroups...)

return res
}
Expand Down
Loading

0 comments on commit b730fda

Please sign in to comment.