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 labels from builders and deployers #4499

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

nkubala
Copy link
Contributor

@nkubala nkubala commented Jul 20, 2020

fixes #3133
third attempt after #4485 (second attempt after #4466) - travis was giving strange and unresolvable errors.

this removes all labels set by skaffold except for skaffold.dev/run-id, and app.kubernetes.io/managed-by=skaffold. this does remove the version from the managed-by label though, so changing skaffold version will not cause issues.

because we don't apply labels from build or deploy, we can remove this from their interfaces, as well as remove passing an array of Labellers to Deploy and Render. the labels are computed once when the runner is created, and stored inside the deployer.

@nkubala nkubala requested a review from a team as a code owner July 20, 2020 17:54
@nkubala nkubala requested a review from dgageot July 20, 2020 17:54
@codecov
Copy link

codecov bot commented Jul 20, 2020

Codecov Report

Merging #4499 into master will increase coverage by 0.13%.
The diff coverage is 87.34%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4499      +/-   ##
==========================================
+ Coverage   72.35%   72.48%   +0.13%     
==========================================
  Files         333      334       +1     
  Lines       12956    12934      -22     
==========================================
+ Hits         9374     9375       +1     
+ Misses       2984     2962      -22     
+ Partials      598      597       -1     
Impacted Files Coverage Δ
pkg/skaffold/build/build.go 0.00% <ø> (ø)
pkg/skaffold/build/cluster/types.go 100.00% <ø> (ø)
pkg/skaffold/build/gcb/types.go 38.46% <ø> (+7.21%) ⬆️
pkg/skaffold/build/local/types.go 86.20% <ø> (+16.76%) ⬆️
pkg/skaffold/deploy/deploy.go 100.00% <ø> (ø)
pkg/skaffold/deploy/kubectl/labels.go 93.10% <ø> (ø)
pkg/skaffold/deploy/labels.go 48.05% <ø> (-7.91%) ⬇️
pkg/skaffold/runner/notification.go 0.00% <0.00%> (ø)
pkg/skaffold/runner/runner.go 0.00% <ø> (ø)
pkg/skaffold/runner/build_deploy.go 71.91% <50.00%> (ø)
... and 21 more

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 a988b46...117b9e8. Read the comment docs.

@nkubala nkubala force-pushed the remove-labels branch 2 times, most recently from 1f7e778 to 3360a24 Compare July 22, 2020 23:07
@dgageot dgageot merged commit 418d2cb into GoogleContainerTools:master Jul 23, 2020
@nkubala nkubala deleted the remove-labels branch July 23, 2020 17:11
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.

Updating Skaffold breaks redeploys since it changes labels
3 participants