aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/transform/unmarshal.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/transform/unmarshal.go')
-rw-r--r--tpl/transform/unmarshal.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tpl/transform/unmarshal.go b/tpl/transform/unmarshal.go
index d876c88d7..dc9029c8d 100644
--- a/tpl/transform/unmarshal.go
+++ b/tpl/transform/unmarshal.go
@@ -95,8 +95,8 @@ func (ns *Namespace) Unmarshal(args ...any) (any, error) {
return &resources.StaleValue[any]{
Value: v,
- IsStaleFunc: func() bool {
- return resource.IsStaleAny(r)
+ StaleVersionFunc: func() uint32 {
+ return resource.StaleVersion(r)
},
}, nil
})
@@ -132,8 +132,8 @@ func (ns *Namespace) Unmarshal(args ...any) (any, error) {
return &resources.StaleValue[any]{
Value: v,
- IsStaleFunc: func() bool {
- return false
+ StaleVersionFunc: func() uint32 {
+ return 0
},
}, nil
})