-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add support for skaffold.yml as a default config file fixes #225 #665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for skaffold.yml as a default config file fixes #225 #665
Conversation
pkg/skaffold/util/util.go
Outdated
contents, err := ioutil.ReadFile(filename) | ||
if err != nil { | ||
// Try reading the skaffold.yml file instead | ||
return ioutil.ReadFile(filepath.Join(directory, "skaffold.yml")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! one nit: can you add a logrus.Infof() here that outputs the error from trying to read the skaffold.yaml and maybe another that says that we're trying to fall back to skaffold.yml? Otherwise the error will just say that it couldn't find "skaffold.yml"
pkg/skaffold/util/util_test.go
Outdated
@@ -108,3 +108,28 @@ func TestExpandPathsGlob(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
|||
func TestDefaultConfigFilenameAlternate(t *testing.T) { | |||
// Setup a few files in a tempdir. We can't use afero here because it doesn't support symlinks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this comment. We don't use aero anywhere, now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.