-
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
Fix 4979 render should validate manifests #6043
Fix 4979 render should validate manifests #6043
Conversation
6ebce74
to
f24c4a2
Compare
This is ready for review now (moved out of draft) |
18cf820
to
a2f3f55
Compare
Codecov Report
@@ Coverage Diff @@
## master #6043 +/- ##
==========================================
- Coverage 70.20% 70.19% -0.01%
==========================================
Files 475 475
Lines 18157 18187 +30
==========================================
+ Hits 12747 12767 +20
- Misses 4473 4481 +8
- Partials 937 939 +2
Continue to review full report at Codecov.
|
a2f3f55
to
142062f
Compare
7e18335
to
7f16c84
Compare
bc2d183
to
29665c2
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.
we should move these changes inside the individual Deployer.Render
methods:
https://github.com/gsquared94/skaffold/blob/71ece9d2e37b11a88379c4aa97b5f0e0ec1e2b82/pkg/skaffold/deploy/kubectl/kubectl.go#L245
Is there a reason why? I though this is validating the schema and hence should be done for every flow. "Deploy, render" |
Please rebase!! |
29665c2
to
05bfd83
Compare
I've rebased now. I'm currently leaving the validation as is for the config, lmk if I should modify this to a different design. |
We want to avoid these checks for inspect and diagnose commands. Those are (will be) frequently by the IDEs and we want to keep them fast. |
Putting this in parser/config.go is definitely not the right place. As you can see you're having to manage the multi config scenario yourself. Please move this to the validations package. |
there are a few empty files. Should those be removed? |
The empty files are there because the GeneratePipeline test currently violates the validation - it has manifests that do not exist. The empty files are to make the validation pass I will move the code the |
05bfd83
to
590b650
Compare
Requested changes made, rebased to #6087 so that manifest values can be specified for better errors |
1a09cfc
to
ebfd85d
Compare
807316b
to
66136e3
Compare
Tests are failing. |
243acdb
to
1dc8ace
Compare
1dc8ace
to
acadbad
Compare
Fixes #4979