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 labels to deployments and improve label coverage of resources #2130

Merged
merged 11 commits into from
Jul 30, 2020

Conversation

glindsell
Copy link
Contributor

@glindsell glindsell commented Jul 14, 2020

Signed-off-by: glindsell gl@seldon.io

What this PR does / why we need it:

See this comment #1405 (comment)

Which issue(s) this PR fixes:

Fixes #1405
Fixes #2187

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Change of component and endpoint label names to include seldon.io prefix

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Tue Jul 14 16:15:05 UTC 2020
The logs for [pr-build] [3] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/3.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=3

@seldondev
Copy link
Collaborator

Tue Jul 14 16:15:13 UTC 2020
The logs for [integration] [5] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/5.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=5

@seldondev
Copy link
Collaborator

Tue Jul 14 16:15:21 UTC 2020
The logs for [lint] [4] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/4.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=4

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Wed Jul 15 08:22:44 UTC 2020
The logs for [integration] [6] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/6.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=6

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Thu Jul 16 08:36:47 UTC 2020
The logs for [lint] [8] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/8.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=8

@seldondev
Copy link
Collaborator

Thu Jul 16 08:36:59 UTC 2020
The logs for [pr-build] [7] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/7.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=7

@seldondev
Copy link
Collaborator

Thu Jul 16 08:37:39 UTC 2020
The logs for [integration] [9] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/9.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=9

@glindsell
Copy link
Contributor Author

/test integration

@glindsell
Copy link
Contributor Author

/test lint

@seldondev
Copy link
Collaborator

Thu Jul 16 15:21:12 UTC 2020
The logs for [integration] [10] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/10.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=10

@seldondev
Copy link
Collaborator

Thu Jul 16 15:21:19 UTC 2020
The logs for [lint] [11] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/11.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=11

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Fri Jul 17 14:24:28 UTC 2020
The logs for [lint] [13] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/13.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=13

@seldondev
Copy link
Collaborator

Fri Jul 17 14:24:35 UTC 2020
The logs for [pr-build] [12] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/12.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=12

@seldondev
Copy link
Collaborator

Fri Jul 17 14:25:29 UTC 2020
The logs for [integration] [14] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/14.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=14

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Fri Jul 17 16:15:18 UTC 2020
The logs for [integration] [15] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/15.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=15

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Jul 20 09:42:57 UTC 2020
The logs for [integration] [16] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/16.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=16

@seldondev
Copy link
Collaborator

Wed Jul 22 17:11:46 UTC 2020
The logs for [pr-build] [27] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/27.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=27

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Thu Jul 23 08:37:46 UTC 2020
The logs for [integration] [29] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/29.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=29

Signed-off-by: glindsell <gl@seldon.io>
@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Thu Jul 23 13:26:31 UTC 2020
The logs for [pr-build] [30] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/30.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=30

@seldondev
Copy link
Collaborator

Thu Jul 23 13:26:50 UTC 2020
The logs for [lint] [31] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/31.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=31

@seldondev
Copy link
Collaborator

Thu Jul 23 13:27:22 UTC 2020
The logs for [integration] [32] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/32.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=32

@glindsell glindsell marked this pull request as ready for review July 24, 2020 09:37
Copy link
Contributor

@adriangonz adriangonz left a comment

Choose a reason for hiding this comment

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

Nice one @glindsell! I just added a small question down below, but everything else looks good! 👍

@@ -732,8 +735,9 @@ func createContainerService(deploy *appsv1.Deployment,
SessionAffinity: corev1.ServiceAffinityNone,
},
}
addLabelsToService(svc, pu, p)
addLabelsToDeployment(deploy, containerServiceKey, containerServiceValue)
deploy.ObjectMeta.Labels[containerServiceKey] = containerServiceValue
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to add a label to any service here? Just wondering as before we were also calling a addLabelsToService method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addLabelsToService doesn't add the containerServiceKey or containerServiceValue labels. Therefore when moving the addLabelsTo... functions up a level to the createComponents method I didn't add svc.ObjectMeta.Labels[containerServiceKey] = containerServiceValue

Perhaps this does need to be added? I'm not sure as it is not part of the set of labels that I am dealing with in this PR.

Label_shadow = "shadow"
Label_canary = "canary"
Label_explainer = "explainer"
Label_router = "seldon.io/router"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice one! Namespacing the labels under seldon.io/* seems like the right thing to do 👍

@adriangonz
Copy link
Contributor

adriangonz commented Jul 24, 2020

BTW @glindsell could you also add some comment to the release-notes block in the PR body? I guess mainly to highlight the change in the labels names.

Signed-off-by: glindsell <gl@seldon.io>
@seldondev
Copy link
Collaborator

Fri Jul 24 16:09:43 UTC 2020
The logs for [pr-build] [33] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/33.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=33

@seldondev
Copy link
Collaborator

Fri Jul 24 16:10:00 UTC 2020
The logs for [lint] [34] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/34.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=34

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Fri Jul 24 16:17:08 UTC 2020
The logs for [integration] [35] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/35.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=35

@adriangonz
Copy link
Contributor

/approve

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adriangonz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@axsaucedo
Copy link
Contributor

/hold (briefly for the question)
Are we going to want this to go in 1.2.2? If not we can wait until Monday before merging, otherwise we'll have to cherrypick (which is also fine, just want to make sure it's explicit)

@axsaucedo
Copy link
Contributor

/hold

@glindsell
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Jul 27 08:40:53 UTC 2020
The logs for [integration] [36] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/36.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=36

@glindsell
Copy link
Contributor Author

/hold (briefly for the question)
Are we going to want this to go in 1.2.2? If not we can wait until Monday before merging, otherwise we'll have to cherrypick (which is also fine, just want to make sure it's explicit)

@axsaucedo are we ok to merge now?

@axsaucedo
Copy link
Contributor

/hold cancel

@seldondev
Copy link
Collaborator

Wed Jul 29 10:36:50 UTC 2020
The logs for [pr-build] [37] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/37.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=37

@seldondev
Copy link
Collaborator

Wed Jul 29 10:36:58 UTC 2020
The logs for [lint] [38] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2130/38.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2130 --build=38

@glindsell glindsell merged commit 91f7791 into SeldonIO:master Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants