@@ -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 ("\n Failed to write pods: %v" , err )
9191 }
0 commit comments