Skip to content
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

Merged
merged 4 commits into from
Aug 26, 2020
Merged

Add Kustomize Hydration to Kpt Deployer's Render method #4719

merged 4 commits into from
Aug 26, 2020

Conversation

felixtran39
Copy link
Contributor

@felixtran39 felixtran39 commented Aug 26, 2020

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.

@codecov
Copy link

codecov bot commented Aug 26, 2020

Codecov Report

Merging #4719 into master will increase coverage by 0.04%.
The diff coverage is 76.19%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pkg/skaffold/deploy/kpt.go 82.85% <76.19%> (-2.47%) ⬇️
pkg/skaffold/debug/transform_netcore.go 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bad4b31...1525a79. Read the comment docs.

pkg/skaffold/deploy/kpt.go Outdated Show resolved Hide resolved
@felixtran39 felixtran39 added the kokoro:run runs the kokoro jobs on a PR label Aug 26, 2020
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Aug 26, 2020
Copy link
Contributor

@MarlonGamez MarlonGamez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MarlonGamez MarlonGamez merged commit 9cd8bdd into GoogleContainerTools:master Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants