EnvironmentService#
- class phalanx.services.environment.EnvironmentService(config_storage, helm_storage)#
Bases:
object
Service for manipulating Phalanx environments.
- Parameters:
config_storage (
ConfigStorage
) – Storage object for the Phalanx configuration.helm_storage (
HelmStorage
) – Interface to Helm actions.
Methods Summary
lint
([environment])Lint the Helm chart for environments.
template
(environment)Expand the templates of the top-level chart.
Methods Documentation
- lint(environment=None)#
Lint the Helm chart for environments.
- template(environment)#
Expand the templates of the top-level chart.
Run helm template for a top-level chart, passing in the appropriate parameters for the given environment.
- Parameters:
environment (
str
) – Environment for which to expand the top-level chart.- Returns:
Output from helm template.
- Return type:
- Raises:
HelmFailedError – Raised if Helm fails.