Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#4 from prydonius/3-expose-sync-img
Browse files Browse the repository at this point in the history
expose container image used in jobs as configurable
  • Loading branch information
prydonius authored Feb 6, 2018
2 parents 963745a + ae6b4d1 commit 40fec17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func jobSpec(apprepo *apprepov1alpha1.AppRepository) batchv1.JobSpec {
Containers: []corev1.Container{
{
Name: "sync",
Image: "kubeapps/chart-repo-sync:latest",
Image: repoSyncImage,
Command: []string{"/chart-repo-sync"},
Args: apprepoSyncJobArgs(apprepo),
Env: []corev1.EnvVar{
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
var (
masterURL string
kubeconfig string
repoSyncImage string
)

func main() {
Expand Down Expand Up @@ -73,4 +74,5 @@ func main() {
func init() {
flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.")
flag.StringVar(&masterURL, "master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
flag.StringVar(&repoSyncImage, "repo-sync-image", "kubeapps/chart-repo-sync:latest", "container repo/image to use in CronJobs")
}

0 comments on commit 40fec17

Please sign in to comment.