@@ -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,26 +35,18 @@ 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" , "tianon/true" , "The container image used to stop sidecars" )
40- affinityAssistantImage = flag .String ("affinity-assistant-image" , "nginx" , "The container image used for the Affinity Assistant" )
41- gitImage = flag .String ("git-image" , "override-with-git:latest" ,
42- "The container image containing our Git binary." )
43- credsImage = flag .String ("creds-image" , "override-with-creds:latest" ,
44- "The container image for preparing our Build's credentials." )
45- kubeconfigWriterImage = flag .String ("kubeconfig-writer-image" , "override-with-kubeconfig-writer:latest" ,
46- "The container image containing our kubeconfig writer binary." )
47- shellImage = flag .String ("shell-image" , "busybox" , "The container image containing a shell" )
48- gsutilImage = flag .String ("gsutil-image" , "google/cloud-sdk" ,
49- "The container image containing gsutil" )
50- buildGCSFetcherImage = flag .String ("build-gcs-fetcher-image" , "gcr.io/cloud-builders/gcs-fetcher:latest" ,
51- "The container image containing our GCS fetcher binary." )
52- prImage = flag .String ("pr-image" , "override-with-pr:latest" ,
53- "The container image containing our PR binary." )
54- imageDigestExporterImage = flag .String ("imagedigest-exporter-image" , "override-with-imagedigest-exporter-image:latest" ,
55- "The container image containing our image digest exporter binary." )
56- 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+ affinityAssistantImage = flag .String ("affinity-assistant-image" , "" , "The container image used for the Affinity Assistant" )
41+ gitImage = flag .String ("git-image" , "" , "The container image containing our Git binary." )
42+ credsImage = flag .String ("creds-image" , "" , "The container image for preparing our Build's credentials." )
43+ kubeconfigWriterImage = flag .String ("kubeconfig-writer-image" , "" , "The container image containing our kubeconfig writer binary." )
44+ shellImage = flag .String ("shell-image" , "" , "The container image containing a shell" )
45+ gsutilImage = flag .String ("gsutil-image" , "" , "The container image containing gsutil" )
46+ buildGCSFetcherImage = flag .String ("build-gcs-fetcher-image" , "" , "The container image containing our GCS fetcher binary." )
47+ prImage = flag .String ("pr-image" , "" , "The container image containing our PR binary." )
48+ imageDigestExporterImage = flag .String ("imagedigest-exporter-image" , "" , "The container image containing our image digest exporter binary." )
49+ namespace = flag .String ("namespace" , corev1 .NamespaceAll , "Namespace to restrict informer to. Optional, defaults to all namespaces." )
5750)
5851
5952func main () {
@@ -71,6 +64,9 @@ func main() {
7164 PRImage : * prImage ,
7265 ImageDigestExporterImage : * imageDigestExporterImage ,
7366 }
67+ if err := images .Validate (); err != nil {
68+ log .Fatal (err )
69+ }
7470 sharedmain .MainWithContext (injection .WithNamespaceScope (signals .NewContext (), * namespace ), ControllerLogKey ,
7571 taskrun .NewController (* namespace , images ),
7672 pipelinerun .NewController (* namespace , images ),
0 commit comments