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/cmd/kube.go b/core/installer/cmd/kube.go
index 4c6ab59..f31ad8f 100644
--- a/core/installer/cmd/kube.go
+++ b/core/installer/cmd/kube.go
@@ -15,3 +15,11 @@
func newHelmReleaseMonitor() (installer.HelmReleaseMonitor, error) {
return installer.NewHelmReleaseMonitor(rootFlags.kubeConfig)
}
+
+func newJobCreator() (installer.JobCreator, error) {
+ clientset, err := installer.NewKubeConfig(rootFlags.kubeConfig)
+ if err != nil {
+ return nil, err
+ }
+ return installer.NewJobCreator(clientset.BatchV1()), nil
+}