-
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
refactor: move all update checks to single function; enforce honoring updateCheck flag #4677
Conversation
… updateCheck flag
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.
I wonder if this error message is even useful anymore. this will show if I add the line
foo: bar
to my skaffold.yaml, which isn't really helpful, or if I accidentally make a typo like
buildConfigg:
...
also, the IDEs have syntax completion for the skaffold.yaml at the version they're using to guide users. WDYT?
It might seem misleading in those scenarios. But if you look at the errors returned by |
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.
added an error to my skaffold.yaml. before this change I saw:
➜ guestbook-1 SKAFFOLD_UPDATE_CHECK=false skaffold dev
WARN[0000] Your Skaffold version might be too old. Download the latest version (1.13.1) from:
https://github.com/GoogleContainerTools/skaffold/releases/tag/v1.13.1
parsing skaffold config: unable to parse config: yaml: unmarshal errors:
line 8: field foo not found in type v2beta4.BuildConfig
now, I see:
➜ guestbook-1 SKAFFOLD_UPDATE_CHECK=false skaffold dev
parsing skaffold config: %!w(<nil>)
so the parse error is getting shadowed.
|
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.
cool, LGTM but there's a linting error. i'll merge when CI is green
Codecov Report
@@ Coverage Diff @@
## master #4677 +/- ##
==========================================
- Coverage 73.21% 73.17% -0.04%
==========================================
Files 339 340 +1
Lines 13323 13368 +45
==========================================
+ Hits 9754 9782 +28
- Misses 2958 2979 +21
+ Partials 611 607 -4
Continue to review full report at Codecov.
|
Fixes #4673
Honor
update-check
flag for all update check notifications. Consolidate function in a single place