Skip to content

Commit

Permalink
add single file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmurugappan committed Dec 10, 2020
1 parent 75fad8c commit 3fd6e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/serving/v1/gitops.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (cl *knServingGitOpsClient) listServicesFromDirectory() ([]servingv1.Servic
}
var services []servingv1.Service
root := cl.dir
if cl.namespace != "" && !cl.fileMode {
if cl.namespace != "" {
root = filepath.Join(cl.dir, cl.namespace)
}
if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
Expand Down

0 comments on commit 3fd6e3b

Please sign in to comment.