-
-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure FirstPartyHelmDeploymentMapping doesn't get calculated if d…
…isabled (Cherry-pick of #21633) (#21636) Option `[helm-infer].deployment_dependencies` was added in #21282. Unfortunately, I missed one place where `FirstPartyHelmDeploymentMapping` is requested: ```python @rule(desc="Prepare Helm deployment post-renderer", level=LogLevel.DEBUG) async def prepare_post_renderer_for_helm_deployment( request: HelmDeploymentPostRendererRequest, union_membership: UnionMembership, docker_options: DockerOptions, ) -> SetupHelmPostRenderer: mapping = await Get( FirstPartyHelmDeploymentMapping, FirstPartyHelmDeploymentMappingRequest(request.field_set) ) ... ``` Here I move this logic inside the rule, so that all consumers correctly handle the case when `[helm-infer].deployment_dependencies` is set to `false` Co-authored-by: Gregory Borodin <[email protected]>
- Loading branch information
Showing
2 changed files
with
102 additions
and
22 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
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