@@ -38,7 +38,15 @@ func ValidateKoolDeployFile(workingDir string, koolDeployFile string) (err error
3838 path = filepath .Join (workingDir , koolDeployFile )
3939
4040 if _ , err = os .Stat (path ); os .IsNotExist (err ) {
41- err = fmt .Errorf ("could not find required file (%s) on current working directory" , koolDeployFile )
41+ // temporary failback to old file name
42+ path = filepath .Join (workingDir , "kool.deploy.yml" )
43+
44+ if _ , err = os .Stat (path ); os .IsNotExist (err ) {
45+ err = fmt .Errorf ("could not find required file (%s) on current working directory" , "kool.cloud.yml" )
46+ return
47+ } else if err != nil {
48+ return
49+ }
4250 return
4351 } else if err != nil {
4452 return
@@ -52,7 +60,6 @@ func ValidateKoolDeployFile(workingDir string, koolDeployFile string) (err error
5260 return
5361 }
5462
55- var gotPublicService = false
5663 for service , config := range deployConfig .Services {
5764 // validates build file exists if defined
5865 if config .Build != nil {
@@ -67,15 +74,6 @@ func ValidateKoolDeployFile(workingDir string, koolDeployFile string) (err error
6774
6875 // validates only one service can be public, and it must define a port
6976 if config .Public != nil {
70- // this is a public service
71- if gotPublicService {
72- // we can have only the one!
73- err = fmt .Errorf ("service (%s) is public, but another service is already public" , service )
74- return
75- }
76-
77- gotPublicService = true
78-
7977 // being public, it must define the `port` entry as well
8078 if config .Port == nil {
8179 err = fmt .Errorf ("service (%s) is public, but it does not define the `port` entry" , service )
0 commit comments