Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ experimental: Add policy migrations to bundles #1461

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading