Skip to content

Commit

Permalink
fix: Fix stale example, bump version, improve message. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
porridge authored Nov 27, 2024
1 parent 8c7c5a0 commit af6c094
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion deploy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand All @@ -50,6 +50,7 @@ func main() {
flag.Parse()
if len(flag.Args()) < 1 {
println("Usage:", os.Args[0], "[ FLAGS ] <name>")
println("Note: name MUST come AFTER flags, if any.")
os.Exit(1)
}
name := flag.Arg(0)
Expand Down

0 comments on commit af6c094

Please sign in to comment.