Skip to content

Commit

Permalink
#1257 Kapitan does not prune Kadet input (#1258)
Browse files Browse the repository at this point in the history
Fixes #1257

## Proposed Changes

* `KapitanInputTypeKadetConfig.prune` defaults to `False` instead of
`True` (inherited).
* Type hint for `KapitanInputTypeJsonnetConfig.prune` is consistent with
`KapitanInputTypeBaseConfig.prune`.

Co-authored-by: Alessandro De Maria <[email protected]>
  • Loading branch information
JordanLloydHall and ademariag authored Oct 31, 2024
1 parent 3016099 commit c84102a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kapitan/inventory/model/input_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class KapitanInputTypeBaseConfig(BaseModel):
class KapitanInputTypeJsonnetConfig(KapitanInputTypeBaseConfig):
input_type: Literal[InputTypes.JSONNET] = InputTypes.JSONNET
input_paths: List[str]
prune: bool = False
prune: Optional[bool] = False


class KapitanInputTypeExternalConfig(KapitanInputTypeBaseConfig):
Expand Down Expand Up @@ -79,6 +79,7 @@ class KapitanInputTypeKadetConfig(KapitanInputTypeBaseConfig):
output_type: OutputType = OutputType.YAML
input_paths: List[str]
input_value: Optional[dict] = None
prune: Optional[bool] = False


class KapitanInputTypeRemoveConfig(KapitanInputTypeBaseConfig):
Expand Down

0 comments on commit c84102a

Please sign in to comment.