<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~  Copyright 2000 - 2017 JetBrains s.r.o.
  ~
  ~  Licensed under the Apache License, Version 2.0 (the "License").
  ~  See LICENSE in the project root for license information.
  -->

<dsl-extension kind="buildStep" type="jetbrains.helm" applicable="params['teamcity.helm.command'] == 'helm-install'" generateDslJar="true">
    <class name="HelmInstallStep">
        <description>
            A [helm build step](https://github.com/JetBrains/teamcity-kubernetes-plugin) to run 'helm install' command
        </description>
    </class>
    <function name="helmInstall">
        <description>
            Adds a [helm build step](https://github.com/JetBrains/teamcity-kubernetes-plugin) to run 'helm install' command
            @see HelmInstallStep
        </description>
    </function>
    <init>
        <param name="command" value="helm-install"/>
    </init>
    <params>
        <param name="helm-installteamcity.helm.chart" dslName="chart">
            <description>Chart to install. Can be a chart reference, path to packaged chart or unpacked chart directory, or absolute URL.</description>
        </param>
        <param name="helm-installteamcity.helm.additionalFlags" dslName="additionalFlags">
            <description>Additional options for 'helm install' command line.</description>
        </param>
    </params>
</dsl-extension>