diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 4c18e884..2876c844 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -9,6 +9,7 @@ ## Bug Fixes * [#319](https://github.com/suse-edge/edge-image-builder/issues/319) - Combustion fails when combustion directory content is larger than half of the RAM of the system +* [#233](https://github.com/suse-edge/edge-image-builder/issues/233) - Use different Helm chart sources for development and production builds --- diff --git a/pkg/combustion/helm.go b/pkg/combustion/helm.go index a944140b..f7b2ebf0 100644 --- a/pkg/combustion/helm.go +++ b/pkg/combustion/helm.go @@ -1,6 +1,9 @@ package combustion -import "github.com/suse-edge/edge-image-builder/pkg/image" +import ( + "github.com/suse-edge/edge-image-builder/pkg/env" + "github.com/suse-edge/edge-image-builder/pkg/image" +) func ComponentHelmCharts(ctx *image.Context) ([]image.HelmChart, []image.HelmRepository) { if ctx.ImageDefinition.Kubernetes.Version == "" { @@ -9,7 +12,6 @@ func ComponentHelmCharts(ctx *image.Context) ([]image.HelmChart, []image.HelmRep const ( suseEdgeRepositoryName = "suse-edge" - suseEdgeRepositoryURL = "https://suse-edge.github.io/charts" installationNamespace = "kube-system" ) @@ -39,7 +41,7 @@ func ComponentHelmCharts(ctx *image.Context) ([]image.HelmChart, []image.HelmRep suseEdgeRepo := image.HelmRepository{ Name: suseEdgeRepositoryName, - URL: suseEdgeRepositoryURL, + URL: env.SUSEEdgeRepository, } repos = append(repos, suseEdgeRepo) diff --git a/pkg/env/env.go b/pkg/env/env.go new file mode 100644 index 00000000..585a9cd2 --- /dev/null +++ b/pkg/env/env.go @@ -0,0 +1,5 @@ +package env + +var ( + SUSEEdgeRepository = "https://suse-edge.github.io/charts" +)