AppManager: cache helm charts and container images to local registry
Caching container images is disabled until we figure out how to run
container registry behind TLS.
Change-Id: I0253f2a862e5adddff18a82b102f67258151c070
diff --git a/core/installer/welcome/env.go b/core/installer/welcome/env.go
index 5d2206f..949cbe0 100644
--- a/core/installer/welcome/env.go
+++ b/core/installer/welcome/env.go
@@ -84,6 +84,8 @@
repo soft.RepoIO
repoClient soft.ClientGetter
nsCreator installer.NamespaceCreator
+ jc installer.JobCreator
+ hf installer.HelmFetcher
dnsFetcher installer.ZoneStatusFetcher
nameGenerator installer.NameGenerator
httpClient phttp.Client
@@ -100,6 +102,8 @@
repo soft.RepoIO,
repoClient soft.ClientGetter,
nsCreator installer.NamespaceCreator,
+ jc installer.JobCreator,
+ hf installer.HelmFetcher,
dnsFetcher installer.ZoneStatusFetcher,
nameGenerator installer.NameGenerator,
httpClient phttp.Client,
@@ -112,6 +116,8 @@
repo,
repoClient,
nsCreator,
+ jc,
+ hf,
dnsFetcher,
nameGenerator,
httpClient,
@@ -333,7 +339,9 @@
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- mgr, err := installer.NewInfraAppManager(s.repo, s.nsCreator)
+ hf := installer.NewGitHelmFetcher()
+ lg := installer.NewInfraLocalChartGenerator()
+ mgr, err := installer.NewInfraAppManager(s.repo, s.nsCreator, hf, lg)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
@@ -403,6 +411,8 @@
t, dns := tasks.NewCreateEnvTask(
env,
s.nsCreator,
+ s.jc,
+ s.hf,
s.dnsFetcher,
s.httpClient,
s.dnsClient,