@@ -18,6 +18,7 @@ package main
1818
1919import (
2020 "flag"
21+ "log"
2122
2223 "github.com/tektoncd/pipeline/pkg/apis/pipeline"
2324 "github.com/tektoncd/pipeline/pkg/reconciler/pipelinerun"
@@ -34,25 +35,17 @@ const (
3435)
3536
3637var (
37- entrypointImage = flag .String ("entrypoint-image" , "override-with-entrypoint:latest" ,
38- "The container image containing our entrypoint binary." )
39- nopImage = flag .String ("nop-image" , "override-with-nop:latest" , "The container image used to stop sidecars" )
40- gitImage = flag .String ("git-image" , "override-with-git:latest" ,
41- "The container image containing our Git binary." )
42- credsImage = flag .String ("creds-image" , "override-with-creds:latest" ,
43- "The container image for preparing our Build's credentials." )
44- kubeconfigWriterImage = flag .String ("kubeconfig-writer-image" , "override-with-kubeconfig-writer:latest" ,
45- "The container image containing our kubeconfig writer binary." )
46- shellImage = flag .String ("shell-image" , "busybox" , "The container image containing a shell" )
47- gsutilImage = flag .String ("gsutil-image" , "google/cloud-sdk" ,
48- "The container image containing gsutil" )
49- buildGCSFetcherImage = flag .String ("build-gcs-fetcher-image" , "gcr.io/cloud-builders/gcs-fetcher:latest" ,
50- "The container image containing our GCS fetcher binary." )
51- prImage = flag .String ("pr-image" , "override-with-pr:latest" ,
52- "The container image containing our PR binary." )
53- imageDigestExporterImage = flag .String ("imagedigest-exporter-image" , "override-with-imagedigest-exporter-image:latest" ,
54- "The container image containing our image digest exporter binary." )
55- namespace = flag .String ("namespace" , corev1 .NamespaceAll , "Namespace to restrict informer to. Optional, defaults to all namespaces." )
38+ entrypointImage = flag .String ("entrypoint-image" , "" , "The container image containing our entrypoint binary." )
39+ nopImage = flag .String ("nop-image" , "" , "The container image used to stop sidecars" )
40+ gitImage = flag .String ("git-image" , "" , "The container image containing our Git binary." )
41+ credsImage = flag .String ("creds-image" , "" , "The container image for preparing our Build's credentials." )
42+ kubeconfigWriterImage = flag .String ("kubeconfig-writer-image" , "" , "The container image containing our kubeconfig writer binary." )
43+ shellImage = flag .String ("shell-image" , "" , "The container image containing a shell" )
44+ gsutilImage = flag .String ("gsutil-image" , "" , "The container image containing gsutil" )
45+ buildGCSFetcherImage = flag .String ("build-gcs-fetcher-image" , "" , "The container image containing our GCS fetcher binary." )
46+ prImage = flag .String ("pr-image" , "" , "The container image containing our PR binary." )
47+ imageDigestExporterImage = flag .String ("imagedigest-exporter-image" , "" , "The container image containing our image digest exporter binary." )
48+ namespace = flag .String ("namespace" , corev1 .NamespaceAll , "Namespace to restrict informer to. Optional, defaults to all namespaces." )
5649)
5750
5851func main () {
@@ -69,6 +62,9 @@ func main() {
6962 PRImage : * prImage ,
7063 ImageDigestExporterImage : * imageDigestExporterImage ,
7164 }
65+ if err := images .Validate (); err != nil {
66+ log .Fatal (err )
67+ }
7268 sharedmain .MainWithContext (injection .WithNamespaceScope (signals .NewContext (), * namespace ), ControllerLogKey ,
7369 taskrun .NewController (* namespace , images ),
7470 pipelinerun .NewController (* namespace , images ),
0 commit comments