-
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
feat: add dockerfile support to skaffold lint and top 2 dockerfile rules #6793
feat: add dockerfile support to skaffold lint and top 2 dockerfile rules #6793
Conversation
2820aa1
to
ea4895c
Compare
Codecov Report
@@ Coverage Diff @@
## main #6793 +/- ##
==========================================
- Coverage 70.48% 69.33% -1.15%
==========================================
Files 515 543 +28
Lines 23150 24768 +1618
==========================================
+ Hits 16317 17173 +856
- Misses 5776 6454 +678
- Partials 1057 1141 +84
Continue to review full report at Codecov.
|
ea4895c
to
1f44d8d
Compare
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.
did a very quick pass on this and just have some nits, will take a deeper look and comb through the logic more
1f44d8d
to
0f117d9
Compare
0f117d9
to
a0c6e22
Compare
Found a bug when testing locally, not completely sure what's happening though. Seems like the lint condition is firing when it shouldn't be. Running this in the Cloud Code Go Getting Started sample app. Output:
My project directory looks like this:
It seems to be firing the .git copy error on files such as |
3563fa8
to
5e675dd
Compare
@MarlonGamez Thanks for finding this issue 🎊. This is related to the lint logic treating a Dockerfile's deps accidentally as all of the deps for each COPY command versus mapping COPY command-> specific deps. What happened above is that each COPY command was flagged as a lint error when a single COPY was invalid when actually it was supposed to only flag the single |
295954d
to
a28e576
Compare
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 ✅ Thanks for addressing the commenets/issues. Looks like merge conflicts just need to be fixed then this should be good to merge
fb71f11
to
dd78c08
Compare
dd78c08
to
4ae997e
Compare
fixes #6103 by adding 2 dockerfile lint rules:
The rules have the following output when triggered (note
skaffold lint
is run against modified version ofexamples/microservices
here w/ misconfigurations added to the Dockerfiles, not the actualexamples/microservices
):