Skip to content

Commit bc1bd98

Browse files
committedNov 2, 2023
Add devfile.yml and .devfile.yml as possible Devfile filenames
Priority order is as follows: devfile.yaml > .devfile.yaml > devfile.yml > .devfile.yml
1 parent 9121359 commit bc1bd98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎pkg/devfile/location/location.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/redhat-developer/odo/pkg/util"
99
)
1010

11-
// possibleDevfileNames contains possivle devfile name that should be checked in the context dir.
12-
var possibleDevfileNames = [...]string{"devfile.yaml", ".devfile.yaml"}
11+
// possibleDevfileNames contains possible devfile name that should be checked in the context dir.
12+
var possibleDevfileNames = [...]string{"devfile.yaml", ".devfile.yaml", "devfile.yml", ".devfile.yml"}
1313

1414
// DevfileFilenamesProvider checks if the context dir contains devfile with possible names from possibleDevfileNames variable,
1515
// else it returns "devfile.yaml" as default value.

0 commit comments

Comments
 (0)