aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/transform.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/transform.go')
-rw-r--r--resources/transform.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/transform.go b/resources/transform.go
index d9084b178..b498924f5 100644
--- a/resources/transform.go
+++ b/resources/transform.go
@@ -657,8 +657,9 @@ type resourceAdapterInner struct {
*publishOnce
}
-func (r *resourceAdapterInner) IsStale() bool {
- return r.Staler.IsStale() || r.target.IsStale()
+func (r *resourceAdapterInner) StaleVersion() uint32 {
+ // Both of these are incremented on change.
+ return r.Staler.StaleVersion() + r.target.StaleVersion()
}
type resourceTransformations struct {