-
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
Add Kustomize Hydration to Kpt Deployer's Render method #4719
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4719 +/- ##
==========================================
+ Coverage 73.38% 73.42% +0.04%
==========================================
Files 341 342 +1
Lines 13505 13560 +55
==========================================
+ Hits 9910 9957 +47
- Misses 2976 2980 +4
- Partials 619 623 +4
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.
LGTM
Related: #3904, #4708
Description
This PR builds upon the existing render method for the Kpt Deployer in #4708 by adding the remaining steps for the desired hydration workflow. This includes reading config manifests from the source directory and running
kustomize build
when kustomization configs exist under the specified directory (k.Dir).Currently, a temporary directory called .pipeline is used to store outputs between different stages of the rendering process. This directory will be replaced by sinkDir when specified by the user.
There is also a slight modification to the kptFnRun method for checking whether FnPath and Image are both provided. This was discussed in further detail in #4708.