Something went wrong. Try again.
A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596-- Generated by Gleam CI helpers.module CI.Component (run, version, lint, template, upgrade, uninstall) where
import Preludeimport CI.Contract as Contractimport Data.Maybe (Maybe)import Effect (Effect)import CI.ModuleDependencies as Dependenciesimport CI.CLI as Native
-- | Execute arbitrary literal CLI arguments.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique.-- | @param arguments Literal native CLI argument tokens, passed without shell expansion.run :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), arguments :: Array String } -> Effect Contract.ExecutionResultrun args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "helm" "run" json
-- | Print the CLI version.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique.version :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String) } -> Effect Contract.ExecutionResultversion args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "helm" "version" json
-- | lint-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique.-- | @param strict Strict supplied to the helm lint operation.-- | @param values Values supplied to the helm lint operation.-- | @param chart Chart supplied to the helm lint operation.lint :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), strict :: Maybe Boolean, values :: Maybe (Array String), chart :: String } -> Effect Contract.ExecutionResultlint args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "helm" "lint" json
-- | template-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique.-- | @param namespace Namespace supplied to the helm template operation.-- | @param values Values supplied to the helm template operation.-- | @param set Set supplied to the helm template operation.-- | @param release Release supplied to the helm template operation.-- | @param chart Chart supplied to the helm template operation.template :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), namespace :: Maybe String, values :: Maybe (Array String), set :: Maybe (Array String), release :: String, chart :: String } -> Effect Contract.ExecutionResulttemplate args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "helm" "template" json
-- | Install or upgrade a release in the configured cluster.-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique.-- | @param namespace Namespace supplied to the helm upgrade operation.-- | @param values Values supplied to the helm upgrade operation.-- | @param set Set supplied to the helm upgrade operation.-- | @param createNamespace Create Namespace supplied to the helm upgrade operation.-- | @param wait Wait supplied to the helm upgrade operation.-- | @param timeout Timeout supplied to the helm upgrade operation.-- | @param release Release supplied to the helm upgrade operation.-- | @param chart Chart supplied to the helm upgrade operation.upgrade :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), namespace :: Maybe String, values :: Maybe (Array String), set :: Maybe (Array String), createNamespace :: Maybe Boolean, wait :: Maybe Boolean, timeout :: Maybe String, release :: String, chart :: String } -> Effect Contract.ExecutionResultupgrade args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "helm" "upgrade" json
-- | uninstall-- | @param project Working directory containing the source checkout; defaults to the current directory. Default: ".".-- | @param runDir Fresh directory for this invocation’s execution report and task logs; must not already exist.-- | @param executable Native CLI executable name or absolute path; defaults to this operation’s tool.-- | @param timeoutMs Maximum task duration in milliseconds; defaults to 900000. Default: 900000.-- | @param artifacts Output artifacts to collect as NAME=PATH entries; names must be unique.-- | @param namespace Namespace supplied to the helm uninstall operation.-- | @param wait Wait supplied to the helm uninstall operation.-- | @param release Release supplied to the helm uninstall operation.uninstall :: { project :: Maybe String, runDir :: String, executable :: Maybe String, timeoutMs :: Maybe Int, artifacts :: Maybe (Array String), namespace :: Maybe String, wait :: Maybe Boolean, release :: String } -> Effect Contract.ExecutionResultuninstall args = do json <- Contract.cliInput (Contract.encodeInput args) Native.executeWithSetup Dependencies.ensureFor "helm" "uninstall" json