@@ -19,7 +19,7 @@ genjobs automatically generates the security repo presubmits from the
19
19
kubernetes presubmits
20
20
21
21
NOTE: this makes a few assumptions
22
- - $PWD/../../prow/config.yaml is where the config lives (unless you supply --config=)
22
+ - $PWD/../../config/ prow/config.yaml is where the config lives (unless you supply --config=)
23
23
- $PWD/.. is where the job configs live (unless you supply --jobs=)
24
24
- the output is job configs ($PWD/..) + /kubernetes-security/generated-security-jobs.yaml (unless you supply --output)
25
25
*/
@@ -47,7 +47,7 @@ import (
47
47
"k8s.io/test-infra/prow/config"
48
48
)
49
49
50
- var configPath = flag .String ("config" , "" , "path to prow/config.yaml, defaults to $PWD/../../prow/config.yaml" )
50
+ var configPath = flag .String ("config" , "" , "path to config/ prow/config.yaml, defaults to $PWD/../../config /prow/config.yaml" )
51
51
var jobsPath = flag .String ("jobs" , "" , "path to prowjobs, defaults to $PWD/../" )
52
52
var outputPath = flag .String ("output" , "" , "path to output the generated jobs to, defaults to $PWD/generated-security-jobs.yaml" )
53
53
@@ -315,13 +315,13 @@ func copyFile(srcPath, destPath string) error {
315
315
316
316
func main () {
317
317
flag .Parse ()
318
- // default to $PWD/prow/config.yaml
318
+ // default to $PWD/config/ prow/config.yaml
319
319
pwd , err := os .Getwd ()
320
320
if err != nil {
321
321
log .Fatalf ("Failed to get $PWD: %v" , err )
322
322
}
323
323
if * configPath == "" {
324
- * configPath = pwd + "/../../prow/config.yaml"
324
+ * configPath = pwd + "/../../config/ prow/config.yaml"
325
325
}
326
326
if * jobsPath == "" {
327
327
* jobsPath = pwd + "/../"
0 commit comments