Skip to content

Commit

Permalink
adjust to current code base
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi committed Nov 27, 2024
1 parent 2a9cea1 commit d1fa882
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/kds/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,12 @@ func HashSuffixMapper(checkKDSFeature bool, labelsToUse ...string) reconcile.Res

func UpdateResourceMeta(fs ...util.CloneResourceMetaOpt) reconcile.ResourceMapper {
return func(_ kds.Features, r core_model.Resource) (core_model.Resource, error) {
newRes := util.CloneResource(r)
newRes.SetMeta(util.CloneResourceMeta(r.GetMeta(), fs...))
return newRes, nil
newObj := r.Descriptor().NewObject()
newMeta := util.CloneResourceMeta(r.GetMeta(), fs...)
newObj.SetMeta(newMeta)
_ = newObj.SetSpec(r.GetSpec())

return newObj, nil
}
}

Expand Down

0 comments on commit d1fa882

Please sign in to comment.