-
Notifications
You must be signed in to change notification settings - Fork 408
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
Support .ko.yaml while in subdir #172
Comments
Hey @mattmoor I'd like to take this one up but before that I want to clarify with you. Let's say I have this structure:
Are we expecting to use |
I think this could spiral quickly, so I think as a first increment let's start with three simple pieces:
I think this balances clarity and simplicity. WDYT? |
I'm totally behind reading from only one |
I'd probably do the simple thing: keep going until you hit the root, or start getting permissions errors 🤷 |
One edge case that might end up confusing to end users (small problem since we're logging the location out but I'd still like to raise it): Say I have
Now if I run |
This issue is stale because it has been open for 90 days with no |
Today if I invoke
ko apply -f foo/
while in a subdirectorybar/
then it is possible that a.ko.yaml
file that's a sibling ofbar/
won't be picked up because we (currently) only look at siblings offoo/
.Fortunately,
AddConfigPath
seems to support multiple invocations, so we can crawl the directory hierarchy from the current working directory to populate the path.I think we want this here: https://github.com/google/ko/blob/d45c5277500220120e9196f431856c0cdd83e92b/pkg/commands/config.go#L104
The text was updated successfully, but these errors were encountered: