Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
saiskee committed Mar 28, 2024
1 parent 7489cd7 commit 6dc774d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/codegen/templates/sets/sets.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ func (s *{{ $kindLowerCamel }}MergedSet) Length() int {
}

func (s *{{ $kindLowerCamel }}MergedSet) Generic() sksets.ResourceSet {
panic("unimplemented")
res := make([]ezkube.ResourceId, s.Length())
for _, thing := range s.List() {
res = append(res, thing)
}
return sksets.NewResourceSet(res...)
}

func (s *{{ $kindLowerCamel }}MergedSet) Delta(newSet {{ $resource.Kind }}Set) sksets.ResourceDelta {
Expand Down

0 comments on commit 6dc774d

Please sign in to comment.