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

Fix clean up of old virtual services #1618

Merged
merged 10 commits into from
Mar 29, 2020
Merged

Fix clean up of old virtual services #1618

merged 10 commits into from
Mar 29, 2020

Conversation

ukclivecox
Copy link
Contributor

Fixes #1594

  • Adds a new cleaner function that looks for owned virtual services and compares to expected and deletes any extra

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: cliveseldon

If they are not already assigned, you can assign the PR to them by writing /assign @cliveseldon in a comment when ready.

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

@seldondev
Copy link
Collaborator

Thu Mar 26 18:38:44 UTC 2020
The logs for [pr-build] [1] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1618/1.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1618 --build=1

@seldondev
Copy link
Collaborator

Thu Mar 26 18:38:49 UTC 2020
The logs for [lint] [2] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1618/2.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1618 --build=2

@ukclivecox
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Thu Mar 26 20:16:09 UTC 2020
The logs for [integration] [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-1618/3.log

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

@seldondev
Copy link
Collaborator

Fri Mar 27 11:03:41 UTC 2020
The logs for [lint] [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-1618/5.log

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

@seldondev
Copy link
Collaborator

Fri Mar 27 11:03:42 UTC 2020
The logs for [pr-build] [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-1618/4.log

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

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! I've added a couple small comments, but they are mainly thoughts or nitpick-ish so feel free to ignore them @cliveseldon.

return ready, err
}
for _, vsvcDeleted := range deleted {
r.Recorder.Eventf(instance, corev1.EventTypeNormal, constants.EventsDeleteVirtualService, "Delete VirtualService %q", vsvcDeleted.GetName())
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: on the event message, should we say Deleted instead of Delete?

Name: namespaceName,
},
}
Expect(k8sClient.Create(context.Background(), namespace)).Should(Succeed())
Copy link
Contributor

Choose a reason for hiding this comment

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

We could probably move most of this setup (e.g. creating the namespace, defining a SeldonDeployment spec, setting default timeouts, etc.) into a BeforeEach block shared by all the tests in operator/controllers/seldondeployment_controller_test.go.

This is just a thought though and it probably falls outside the scope of this PR, so feel free to ignore.

@ukclivecox
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Fri Mar 27 13:29:46 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-1618/6.log

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

@ukclivecox
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Sat Mar 28 14:30:37 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-1618/8.log

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

@seldondev
Copy link
Collaborator

Sat Mar 28 14:30:40 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-1618/7.log

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

@seldondev
Copy link
Collaborator

Sat Mar 28 14:32:50 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-1618/9.log

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

@seldondev seldondev added size/XL and removed size/L labels Mar 28, 2020
@seldondev
Copy link
Collaborator

Sat Mar 28 18:31:34 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-1618/11.log

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

@seldondev
Copy link
Collaborator

Sat Mar 28 18:31:34 UTC 2020
The logs for [pr-build] [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-1618/10.log

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

@ukclivecox
Copy link
Contributor Author

/test notebook

@ukclivecox
Copy link
Contributor Author

/test notebooks

@seldondev
Copy link
Collaborator

Sat Mar 28 19:04:24 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-1618/13.log

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

@seldondev
Copy link
Collaborator

Sat Mar 28 19:04:25 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-1618/12.log

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

@seldondev
Copy link
Collaborator

Sat Mar 28 19:05:11 UTC 2020
The logs for [notebooks] [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-1618/14.log

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

@seldondev
Copy link
Collaborator

Sun Mar 29 08:16:43 UTC 2020
The logs for [pr-build] [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-1618/15.log

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

@seldondev
Copy link
Collaborator

Sun Mar 29 08:16:48 UTC 2020
The logs for [lint] [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-1618/16.log

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

@ukclivecox
Copy link
Contributor Author

/test notebooks

@seldondev
Copy link
Collaborator

Sun Mar 29 08:23:36 UTC 2020
The logs for [notebooks] [17] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1618/17.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1618 --build=17

@seldondev
Copy link
Collaborator

Sun Mar 29 10:42:14 UTC 2020
The logs for [lint] [19] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1618/19.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1618 --build=19

@seldondev
Copy link
Collaborator

Sun Mar 29 10:42:32 UTC 2020
The logs for [pr-build] [18] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1618/18.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1618 --build=18

@ukclivecox
Copy link
Contributor Author

/test notebooks

@seldondev
Copy link
Collaborator

Sun Mar 29 10:50:34 UTC 2020
The logs for [notebooks] [20] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1618/20.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1618 --build=20

@seldondev
Copy link
Collaborator

@cliveseldon: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
notebooks ca67eda link /test notebooks

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ukclivecox
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Sun Mar 29 14:02:29 UTC 2020
The logs for [integration] [21] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1618/21.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1618 --build=21

@ukclivecox ukclivecox merged commit a4b1088 into SeldonIO:master Mar 29, 2020
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.

Duplicated VirtualServices entries
3 participants