mirror of
https://github.com/rancher/norman.git
synced 2025-07-13 07:05:48 +00:00
Add changed method
This commit is contained in:
parent
5e344d90cd
commit
04c7130e5f
@ -15,3 +15,8 @@ func Diff(desired, actual map[string]bool) (toCreate []string, toDelete []string
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Changed(desired, actual map[string]bool) bool {
|
||||||
|
toCreate, toDelete, _ := Diff(desired, actual)
|
||||||
|
return len(toCreate) != 0 || len(toDelete) != 0
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user