The kubragen2.build
module¶
-
kubragen2.build.
BuildData
(data: Any, in_place: bool = True) → Any¶ Cleanup all instances of Data classes, removing if not enabled or replacing by its value.
- Parameters
data – the data to mutate
in_place – whether to modify the data in-place. If False, data will be duplicated using copy.deepcopy
- Returns
the same value passed, mutated, except if it is Data{enabled=False}, in this case it returns None.