Add hashAttrs helper to lib

This commit is contained in:
Carl Andersson 2025-11-19 21:49:26 +01:00
commit 01cedc5d8c

View file

@ -126,4 +126,7 @@ self: lib: {
]
else
value;
# md5 hash an attrset, useful to trigger rollouts by hashing ConfigMaps.
hashAttrs = attrs: builtins.hashString "md5" (builtins.toJSON attrs);
}