Skip to content

Commit c76b4df

Browse files
committed
Rename out-dir flag to output-dir to resolve linter conflict
1 parent 6afc17e commit c76b4df

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

fuzzer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ go run cmd/main.go \
6666
--name-prefix representative-pod \
6767
--namespace my-test-ns \
6868
--count 1000 \
69-
--out-dir ./generated-pods
69+
--output-dir ./generated-pods
7070
```
7171

7272
## Flags
@@ -78,7 +78,7 @@ go run cmd/main.go \
7878
- `--offset`: Starting index for naming (useful for incremental runs).
7979
- `--concurrency`: Number of concurrent workers (default: 50).
8080
- `--kubeconfig`: Path to the kubeconfig file. Defaults to `$HOME/.kube/config`.
81-
- `--out-dir`: If specified, write YAMLs to this directory instead of injecting into a cluster.
81+
- `--output-dir`: If specified, write YAMLs to this directory instead of injecting into a cluster.
8282

8383
## Verification & Metrics
8484

fuzzer/cmd/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func main() {
3737
basePodPath := flag.String("base-pod", "templates/complex-daemonset.yaml", "Path to the real pod YAML to sanitize and clone")
3838
namespace := flag.String("namespace", "fuzz-test", "Target namespace for fuzzed pods")
3939
namePrefix := flag.String("name-prefix", "fuzzed-pod", "Prefix for generated pod names")
40-
outDir := flag.String("out-dir", "", "Directory to write YAMLs (if specified, no cluster injection)")
40+
outputDir := flag.String("output-dir", "", "Directory to write YAMLs (if specified, no cluster injection)")
4141
concurrency := flag.Int("concurrency", 50, "Number of concurrent workers")
4242
kubeconfig := flag.String("kubeconfig", "", "Path to the kubeconfig file for direct injection")
4343

@@ -54,7 +54,7 @@ func main() {
5454
}
5555

5656
var clientset *kubernetes.Clientset
57-
if *outDir == "" {
57+
if *outputDir == "" {
5858
loadingRules := clientcmd.NewDefaultClientConfigLoadingRules()
5959
if *kubeconfig != "" {
6060
loadingRules.ExplicitPath = *kubeconfig
@@ -83,9 +83,9 @@ func main() {
8383
}
8484

8585
start := time.Now()
86-
if *outDir != "" {
87-
fmt.Printf("Writing %d fuzzed pod manifests to %s (base: %s)...\n", *count, *outDir, *basePodPath)
88-
dir, err := creator.WriteExemplaryPodsToDir(context.Background(), &basePod, *count, *offset, *concurrency, *outDir, progress)
86+
if *outputDir != "" {
87+
fmt.Printf("Writing %d fuzzed pod manifests to %s (base: %s)...\n", *count, *outputDir, *basePodPath)
88+
dir, err := creator.WriteExemplaryPodsToDir(context.Background(), &basePod, *count, *offset, *concurrency, *outputDir, progress)
8989
if err != nil {
9090
log.Fatalf("\nFailed to write pods: %v", err)
9191
}

0 commit comments

Comments
 (0)