From 5d3af140f79325e3250c87fe7025c34e6582b798 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Fri, 15 Jun 2018 05:20:39 +0200 Subject: [PATCH] feat(k8s): add repo parameter to helm module type --- src/plugins/kubernetes/helm.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/kubernetes/helm.ts b/src/plugins/kubernetes/helm.ts index 5d7da639da..cffd27ab1a 100644 --- a/src/plugins/kubernetes/helm.ts +++ b/src/plugins/kubernetes/helm.ts @@ -63,6 +63,7 @@ import { GARDEN_SYSTEM_NAMESPACE } from "./system" export interface HelmServiceSpec extends ServiceSpec { chart: string + repo?: string dependencies: string[] version?: string parameters: { [key: string]: Primitive } @@ -83,6 +84,8 @@ const helmModuleSpecSchema = Joi.object().keys({ chart: Joi.string() .required() .description("A valid Helm chart name or URI."), + repo: Joi.string() + .description("The repository URL to fetch the chart from."), dependencies: joiArray(joiIdentifier()) .description("List of names of services that should be deployed before this chart."), version: Joi.string() @@ -161,6 +164,9 @@ async function buildModule({ ctx, provider, module, logEntry }: BuildModuleParam if (config.spec.version) { fetchArgs.push("--version", config.spec.version) } + if (config.spec.repo) { + fetchArgs.push("--repo", config.spec.repo) + } logEntry && logEntry.setState("Fetching chart...") await helm(provider, ...fetchArgs)