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

Kpt Deployer Deploy() Implementation/Tests #4723

Merged
merged 2 commits into from
Aug 27, 2020
Merged

Kpt Deployer Deploy() Implementation/Tests #4723

merged 2 commits into from
Aug 27, 2020

Conversation

felixtran39
Copy link
Contributor

@felixtran39 felixtran39 commented Aug 26, 2020

Related: #3904

Description
This is the implementation and unit tests for the Deploy() method of the kpt deployer. This method uses the renderManifests() method to hydrate resources using kustomize and kpt, and then outputs these manifests to the applyDir, where kpt live apply will be called. If unspecified by the user, applyDir is defaulted to .kpt-hydrated. If a template resource is not found in .kpt-hydrated, kpt live init will be called to create one.

There is also a slight change to the Cleanup() method to improve its output message when deleting. skaffold delete will now include kpt live destroy's output message. This is similar to the Deploy() method.

Eventually, we may deviate from consuming kpt as a CLI so this can change in the future.

Follow-up Work
Future work will include extending the existing features of the kpt deployer. This includes allowing users to specify source and sink directories, and various kpt command flags.

@felixtran39 felixtran39 requested review from yuwenma and a team as code owners August 26, 2020 21:10
@felixtran39 felixtran39 requested a review from dgageot August 26, 2020 21:10
@codecov
Copy link

codecov bot commented Aug 26, 2020

Codecov Report

Merging #4723 into master will increase coverage by 0.02%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4723      +/-   ##
==========================================
+ Coverage   73.42%   73.45%   +0.02%     
==========================================
  Files         342      342              
  Lines       13560    13579      +19     
==========================================
+ Hits         9957     9975      +18     
- Misses       2980     2981       +1     
  Partials      623      623              
Impacted Files Coverage Δ
pkg/skaffold/deploy/kpt.go 84.27% <87.50%> (+1.41%) ⬆️

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 9cd8bdd...f9bfc72. Read the comment docs.

@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
@tejal29 tejal29 merged commit fd0d8d2 into GoogleContainerTools:master Aug 27, 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