Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ci.pluginsHelm

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.

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.

updateRepositories

Updates all repositories.