Add hashAttrs helper to lib
This commit is contained in:
parent
36e3e4b72f
commit
01cedc5d8c
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue