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

Remove duplication in kustomize deployer #900

Merged

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Aug 16, 2018

No description provided.

This way, it should be easier to remove duplication

Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
@dgageot dgageot requested review from balopat and r2d4 as code owners August 16, 2018 09:35
@codecov-io
Copy link

codecov-io commented Aug 16, 2018

Codecov Report

Merging #900 into master will decrease coverage by 0.82%.
The diff coverage is 47.32%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #900      +/-   ##
==========================================
- Coverage   38.27%   37.45%   -0.83%     
==========================================
  Files          56       58       +2     
  Lines        2576     2590      +14     
==========================================
- Hits          986      970      -16     
- Misses       1476     1509      +33     
+ Partials      114      111       -3
Impacted Files Coverage Δ
pkg/skaffold/deploy/kubectl/warnings.go 0% <ø> (ø)
pkg/skaffold/deploy/kustomize.go 0% <0%> (ø) ⬆️
pkg/skaffold/deploy/kubectl/cli.go 0% <0%> (ø)
pkg/skaffold/deploy/kubectl/manifests.go 64.7% <64.7%> (ø)
pkg/skaffold/deploy/kubectl.go 50.61% <90%> (-14.97%) ⬇️

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 ad07228...8a12a3a. Read the comment docs.

@balopat
Copy link
Contributor

balopat commented Aug 16, 2018

this looks good to me - is this in preparation for swapping out the image replacement logic with kustomize's logic?

@dgageot
Copy link
Contributor Author

dgageot commented Aug 16, 2018

@balopat In my mind, it was just to remove some duplication but I'd be happy to do what you said. Can you explain me what you have in mind?

@balopat
Copy link
Contributor

balopat commented Aug 16, 2018

I'm not 100% sure that we can use this, but in kustomize 1.0.5 they introduced an ImageTagTransformer - would be interesting to check it out.

Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

LGTM

@dgageot dgageot merged commit 2c5248b into GoogleContainerTools:master Aug 17, 2018
@dgageot dgageot deleted the remove-duplication-kustomize branch December 28, 2018 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants