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

Deprecate CollectionSpec.RewriteMaps() #651

Merged
merged 3 commits into from May 3, 2022

Conversation

ti-mo
Copy link
Collaborator

@ti-mo ti-mo commented May 2, 2022

Some follow-ups to #646.

Adds a deprecation notice to RewriteMaps().
Moves the Map(Spec) compatibility check out of the lazy-loading path.

cc @mauriciovasquezbernal

ti-mo added 2 commits May 2, 2022 14:25
Signed-off-by: Timo Beckers <timo@isovalent.com>
We want to make sure to ensure compatibility of all Maps passed in
opts.MapReplacements, not just the ones that get loaded using `loadMap`
later on. This avoids any surprises down the line.

Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo requested a review from lmb May 2, 2022 12:37
collection.go Outdated Show resolved Hide resolved
@ti-mo ti-mo force-pushed the tb/deprecate-rewrite-maps branch from bf9430b to 6c96db1 Compare May 3, 2022 08:38
…cements

Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo force-pushed the tb/deprecate-rewrite-maps branch from 6c96db1 to b08b20d Compare May 3, 2022 08:58
@ti-mo ti-mo merged commit 832b2e8 into cilium:master May 3, 2022
@ti-mo ti-mo deleted the tb/deprecate-rewrite-maps branch May 3, 2022 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants