-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Add function to prune map keys (#2436)
Add a "pruneMap" function and supporting "pruneSlice" function to prune map keys that are not present in a target map. Kubernetes sets a significant amount of additional state on cluster resources after they are created, which complicates diffing with the subset of properties that are set by a user program. The pruneMap function can be used to preprocess live resource state before diffing against program inputs.
- Loading branch information
1 parent
df71ef2
commit 14916d3
Showing
2 changed files
with
965 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.