Skip to content

Commit

Permalink
Add computed field for Helm release name and name override
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed May 21, 2024
1 parent 8fcf266 commit d3984b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kpops/components/base_components/helm_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Annotated, Any

import pydantic
from pydantic import Field, SerializationInfo, model_serializer
from pydantic import Field, SerializationInfo, computed_field, model_serializer
from typing_extensions import override

from kpops.component_handlers.helm_wrapper.dry_run_handler import DryRunHandler
Expand Down Expand Up @@ -103,11 +103,13 @@ def dry_run_handler(self) -> DryRunHandler:
helm_diff = HelmDiff(self.config.helm_diff_config)
return DryRunHandler(self.helm, helm_diff, self.namespace)

@computed_field
@property
def helm_release_name(self) -> str:
"""The name for the Helm release."""
return create_helm_release_name(self.full_name)

@computed_field
@property
def helm_name_override(self) -> str:
"""Helm chart name override."""
Expand Down

0 comments on commit d3984b8

Please sign in to comment.