-
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
Enable skaffold debug
for kustomize
#2043
Conversation
Apply manifest transformations before passing through to kubectl. Required adding support for passing through insecureRegistries.
Codecov Report
@@ Coverage Diff @@
## master #2043 +/- ##
==========================================
+ Coverage 56.18% 56.27% +0.09%
==========================================
Files 180 180
Lines 7771 7799 +28
==========================================
+ Hits 4366 4389 +23
- Misses 2988 2992 +4
- Partials 417 418 +1
Continue to review full report at Codecov.
|
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 add some intergration test like in https://github.com/GoogleContainerTools/skaffold/blob/master/integration/deploy_test.go#L78 where we run skaffold debug
for jib examples and see if the deployment "web" has the applied transformation.
Co-Authored-By: briandealwis <[email protected]>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PTAL @tejal29. This adds an integration test that runs There's a seemingly unrelated change to
With this fix, I then get the actual error text:
(These tests seem to use UPDATE: backed out this change as it causes failures in |
This comment has been minimized.
This comment has been minimized.
Oops, hold off: I didn't add a kustomize test. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Unrelated failure on Kokoro, I think:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
The kokoro TestFix error is not unrelated - the test is checking the output of the command that you changed by switching to CombinedOutput
.
Ah! Thank you! 🙏 |
Backed out the change to use |
This comment has been minimized.
This comment has been minimized.
PTAL: tests passing |
The list of manifest transforms is within the
pkg/skaffold/deploy
package, so the kustomize deployer just applies that same list before passing through tokubectl
.Required adding support for passing through
insecureRegistries
.Easy verification test:
That message is from the debugging transforms (so they're being used). The debug transforms can't be applied as the project references a prebuilt image and doesn't actually have a build artifact.