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

[kubectl] apply labels by patching yaml #1489

Merged

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jan 18, 2019

This is a much simpler way of labelling resources when using kubectl.

Signed-off-by: David Gageot david@gageot.net

@dgageot dgageot changed the title [kubectl] apply labels by patching [kubectl] apply labels by patching yaml Jan 18, 2019
@nkubala
Copy link
Contributor

nkubala commented Jan 19, 2019

I'm 85% sure there's a reason we didn't do it this way in the first place, but I can't remember. @r2d4 @dlorenc am I crazy

@codecov-io
Copy link

codecov-io commented Jan 19, 2019

Codecov Report

Merging #1489 into master will increase coverage by 0.18%.
The diff coverage is 63.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1489      +/-   ##
==========================================
+ Coverage   46.51%   46.69%   +0.18%     
==========================================
  Files         118      119       +1     
  Lines        5044     5060      +16     
==========================================
+ Hits         2346     2363      +17     
+ Misses       2464     2463       -1     
  Partials      234      234
Impacted Files Coverage Δ
pkg/skaffold/deploy/labels.go 15.85% <ø> (+6.09%) ⬆️
pkg/skaffold/deploy/kubectl/cli.go 0% <0%> (ø) ⬆️
pkg/skaffold/deploy/kustomize.go 36% <0%> (+1.38%) ⬆️
pkg/skaffold/deploy/kubectl.go 75.86% <66.66%> (-1.75%) ⬇️
pkg/skaffold/deploy/kubectl/labels.go 78.57% <78.57%> (ø)
pkg/skaffold/deploy/util.go 68% <0%> (-8%) ⬇️

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 6437d83...dd8e017. Read the comment docs.

@dgageot
Copy link
Contributor Author

dgageot commented Jan 19, 2019

@nkubala the problem is that now, there's two implementations. One for kubctl/kustomize, one for helm. Maybe you wanted to have a single implementation.

@dgageot dgageot force-pushed the simpler-kubectl-labelling branch 3 times, most recently from 10d119b to 75a8e44 Compare January 24, 2019 05:42
@nkubala
Copy link
Contributor

nkubala commented Jan 25, 2019

@dgageot I don't think that was it, but I can't think of a good reason now so forget about it.

Kokoro is failing but it looks like it might have been a network issue, restarting the build

@dgageot dgageot force-pushed the simpler-kubectl-labelling branch 7 times, most recently from 7adf3c0 to 9447adc Compare January 30, 2019 08:24
@dgageot dgageot force-pushed the simpler-kubectl-labelling branch 4 times, most recently from 86e57d3 to de1a6f5 Compare February 4, 2019 08:32
Signed-off-by: David Gageot <david@gageot.net>
Copy link
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

:shipit:

@balopat balopat merged commit c9d3235 into GoogleContainerTools:master Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants