Skip to content

Commit

Permalink
Add optional force_fetch field for all dependency types (#1242)
Browse files Browse the repository at this point in the history
## Proposed Changes

Move the optional `force_fetch` field to the
`KapitanDependencyBaseConfig` type.

We access the `force_fetch` field without regard to the dependency type
in
https://github.com/kapicorp/kapitan/blob/593e5f90888fcd48bed2477f1f22407187e1845b/kapitan/targets.py#L118

## Docs and Tests

* [ ] Tests added
* [ ] Updated documentation
  • Loading branch information
simu authored Sep 25, 2024
1 parent b4523a4 commit 70a9969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kapitan/inventory/model/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class KapitanDependencyBaseConfig(BaseModel):
type: KapitanDependencyTypes
source: str
output_path: str
force_fetch: Optional[bool] = False


class KapitanDependencyHelmConfig(KapitanDependencyBaseConfig):
type: Literal[KapitanDependencyTypes.HELM] = KapitanDependencyTypes.HELM
chart_name: str
version: Optional[str] = None
helm_path: Optional[str] = None
force_fetch: Optional[bool] = False


class KapitanDependencyGitConfig(KapitanDependencyBaseConfig):
Expand Down

0 comments on commit 70a9969

Please sign in to comment.