Skip to content

Commit

Permalink
Use better keys for descendants
Browse files Browse the repository at this point in the history
  • Loading branch information
sleipnir committed Feb 24, 2023
1 parent 22b8854 commit 65e73f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/bonny/axn.ex
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,7 @@ defmodule Bonny.Axn do
do: descendant,
else: Resource.add_owner_reference(descendant, axn.resource)

key =
{K8s.Resource.FieldAccessors.namespace(descendant),
K8s.Resource.FieldAccessors.kind(descendant), K8s.Resource.FieldAccessors.name(descendant)}
key = Bonny.Resource.gvkn(descendant)

%__MODULE__{axn | descendants: Map.put(axn.descendants, key, descendant)}
end
Expand Down

0 comments on commit 65e73f7

Please sign in to comment.