diff --git a/README.md b/README.md index 1a74278..397ab61 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ It also optionally collects each pull attempt's duration and result. Example: ``` - go run github.com/stackrox/image-prefetcher/deploy@v0.2.2 my-images v0.2.2 vanilla > manifest.yaml + go run github.com/stackrox/image-prefetcher/deploy@v0.3.0 --version v0.3.0 my-images > manifest.yaml ``` 2. Prepare an image list. This should be a plain text file with one image name per line. diff --git a/deploy/main.go b/deploy/main.go index d313181..0897fe0 100644 --- a/deploy/main.go +++ b/deploy/main.go @@ -40,7 +40,7 @@ var ( ) func init() { - flag.StringVar(&version, "version", "v0.1.0", "Version of image prefetcher OCI image.") + flag.StringVar(&version, "version", "v0.3.0", "Version of image prefetcher OCI image.") flag.TextVar(&k8sFlavor, "k8s-flavor", flavor(vanillaFlavor), fmt.Sprintf("Kubernetes flavor. Accepted values: %s", strings.Join(allFlavors, ","))) flag.StringVar(&secret, "secret", "", "Kubernetes image pull Secret to use when pulling.") flag.BoolVar(&collectMetrics, "collect-metrics", false, "Whether to collect and expose image pull metrics.") @@ -50,6 +50,7 @@ func main() { flag.Parse() if len(flag.Args()) < 1 { println("Usage:", os.Args[0], "[ FLAGS ] ") + println("Note: name MUST come AFTER flags, if any.") os.Exit(1) } name := flag.Arg(0)