Helm Transformations¶
The Helm transformation is implemented by the helm-plugin. Helm provides reusable and templated Kubernetes deployment models called Helm charts. Every Helm chart contains an embedded Kubernetes deployment model. Therefore, the plugin does not create EDMM constructs itself, but renders the Kubernetes deployment model of a Helm chart and requests its analysis by the Kubernetes plugin. The analysis does not use a JetBrains MPS project.
Transformation Process¶
A Helm deployment model is given by Helm CLI commands, which are passed on by the plugin of the embedding deployment technology (see Embedded Deployment Models). The plugin processes the commands of the Helm deployment model in their order:
| Command | Processing |
|---|---|
helm repo add <name> <url> |
The command is executed, so that the chart repository is available for rendering. |
helm install <release> <chart> [options] |
The command is rewritten to helm template <release> <chart> [options] and executed. The rendered Kubernetes manifests are saved as <release>.yaml in the output directory of the plugin (kube.output.directory). |
| any other command | ignored |
All options of the helm install command, such as --set, -f, or --version, are passed on to helm template, so that the templated values are resolved from the given configuration.
Embedded Deployment Models¶
The DeMAF currently supports the following embeddings of Helm deployment models, which are described in detail in the overview of embedded deployment models:
- Bash → Helm (reference embedding)
- Helm → Kubernetes (containment embedding)
- Terraform → Helm (reference embedding)