Skip to content

Helm

class Helm

Integrate Helm into your build.

This plugin adds the helm extension to scripts:

val deploy by job {
    script {
        helm.addRepository("mongodb", "https://mongodb.github.io/helm-charts")
        helm.updateRepositories()
        helm.deploy("community-operator", "mongodb/community-operator")
    }
}

Types

Companion

object Companion

Functions

addRepository

fun addRepository(name: String, url: String)

Adds a Helm repository.

script {
    helm.addRepository("mongodb", "https://mongodb.github.io/helm-charts")
}
External resources

deploy

fun deploy(
    release: String, 
    chart: String, 
    values: List<String> = emptyList(), 
    namespace: String? = null, 
    createNamespace: Boolean = namespace != null, 
    wait: Boolean = true, 
    atomic: Boolean = true
)

Deploys the chart as release.

script {
    helm.deploy("community-operator", "mongodb/community-operator")
}
External resources

updateRepositories

Updates all repositories.

script {
    helm.updateRepositories()
}
External resources