-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Clarify how Skaffold resolves files #5467
Clarify how Skaffold resolves files #5467
Conversation
Please visit http://35.236.91.127:1313 to view changes to the docs. |
Error creating deployment docs-controller-deployment-5467, please visit https://storage.googleapis.com/webhook-logs/logs-5467-1614379720231026047 to view logs. |
Error creating deployment, please see controller logs for details. |
Codecov Report
@@ Coverage Diff @@
## master #5467 +/- ##
==========================================
- Coverage 71.48% 71.28% -0.21%
==========================================
Files 397 400 +3
Lines 14573 14975 +402
==========================================
+ Hits 10418 10675 +257
- Misses 3387 3512 +125
- Partials 768 788 +20
Continue to review full report at Codecov.
|
build: | ||
artifacts: | ||
- image: app | ||
context: frontend |
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.
should we mention that if context
is not explicitly defined then it's set to the CWD anyway?
is resolved relative to the `frontend` directory (i.e., `frontend/Dockerfile`), | ||
whereas the the Helm chart's location and its values-files are | ||
relative to the current directory in `helm/project`. | ||
```yaml |
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.
also show the directory tree?
.
├── frontend
│ └── Dockerfile
├── helm
│ └── project
│ └── dev-values.yaml
└── skaffold.yaml
`skaffold.yaml` in the current directory, but the location can be | ||
overridden with the `--filename` flag. | ||
|
||
### File resolution |
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.
Can you add a File resolution
section down below or mention here itself about configurations resolved as dependencies. The paths in those files are resolved relative to the directory containing the imported file. So it's recommended to have the skaffold.yaml
file live in the root of the project and not in a nested directory.
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.
Oh jeepers, I missed your comments @gsquared94. PTAL.
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.
lgtm!
Failure was due to Docker Hub |
Related: #5355
Description
Clarify where the
skaffold.yaml
is expected to be found and how referenced files and directories are resolved against the current working directory, except for build artifacts.