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

do not act on resources that have deletion timestamp set #2782

Merged
merged 3 commits into from
Dec 16, 2020
Merged

do not act on resources that have deletion timestamp set #2782

merged 3 commits into from
Dec 16, 2020

Conversation

RafalSkolasinski
Copy link
Contributor

@RafalSkolasinski RafalSkolasinski commented Dec 14, 2020

What this PR does / why we need it:

This avoids having Operator re-creating Pods (and other resources) that are being removed through foreground deletion mechanism, e.g. ArgoCD-powered gitops.

Which issue(s) this PR fixes:

Closes #2781

Special notes for your reviewer:

For reference, this is how it is done in kfserving.

This is important because in foreground deletion resource is still available through the API while it is being deleted.
If we don't stop early on the reconcile logic we would be recreating the pods that are being deleted.

Logic here differs from one in kfserving as we do not use finalizers.

Does this PR introduce a user-facing change?:

None

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign rafalskolasinski
You can assign the PR to them by writing /assign @rafalskolasinski in a comment when ready.

The full list of commands accepted by this bot can be found 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

Mon Dec 14 17:05:47 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-2782/2.log

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

@seldondev
Copy link
Collaborator

Mon Dec 14 17:06:00 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-2782/1.log

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

@RafalSkolasinski
Copy link
Contributor Author

/test this

@RafalSkolasinski
Copy link
Contributor Author

/test integration

@RafalSkolasinski RafalSkolasinski marked this pull request as draft December 14, 2020 17:09
@seldondev
Copy link
Collaborator

Mon Dec 14 17:09:46 UTC 2020
The logs for [integration] [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-2782/4.log

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

@seldondev
Copy link
Collaborator

Mon Dec 14 17:09:54 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-2782/3.log

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

@seldondev
Copy link
Collaborator

Mon Dec 14 18:14:34 UTC 2020
The logs for [lint] [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-2782/6.log

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

@seldondev
Copy link
Collaborator

Mon Dec 14 18:14:44 UTC 2020
The logs for [pr-build] [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-2782/5.log

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

@RafalSkolasinski
Copy link
Contributor Author

/test integration
/test notebook

@RafalSkolasinski
Copy link
Contributor Author

/test notebooks

@seldondev
Copy link
Collaborator

Tue Dec 15 10:43:12 UTC 2020
The logs for [integration] [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-2782/7.log

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

@seldondev
Copy link
Collaborator

Tue Dec 15 10:44:46 UTC 2020
The logs for [notebooks] [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-2782/8.log

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

@seldondev seldondev added size/L and removed size/XS labels Dec 15, 2020
@RafalSkolasinski
Copy link
Contributor Author

/test notebooks

@seldondev
Copy link
Collaborator

Tue Dec 15 14:43:13 UTC 2020
The logs for [pr-build] [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-2782/9.log

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

@seldondev
Copy link
Collaborator

Tue Dec 15 14:43:30 UTC 2020
The logs for [lint] [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-2782/10.log

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

@seldondev
Copy link
Collaborator

Tue Dec 15 14:43:58 UTC 2020
The logs for [pr-build] [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-2782/11.log

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

@seldondev
Copy link
Collaborator

Tue Dec 15 14:44:13 UTC 2020
The logs for [lint] [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-2782/12.log

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

@seldondev
Copy link
Collaborator

Tue Dec 15 14:44:32 UTC 2020
The logs for [notebooks] [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-2782/13.log

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

@seldondev
Copy link
Collaborator

Tue Dec 15 18:24:46 UTC 2020
The logs for [pr-build] [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-2782/14.log

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

@seldondev
Copy link
Collaborator

Tue Dec 15 18:24:53 UTC 2020
The logs for [lint] [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-2782/15.log

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

@seldondev seldondev added size/XL and removed size/L labels Dec 15, 2020
@seldondev
Copy link
Collaborator

Tue Dec 15 18:40:42 UTC 2020
The logs for [pr-build] [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-2782/16.log

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

@seldondev
Copy link
Collaborator

Tue Dec 15 18:40:54 UTC 2020
The logs for [lint] [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-2782/17.log

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

@axsaucedo
Copy link
Contributor

/test notebooks

@axsaucedo
Copy link
Contributor

/test integration

@axsaucedo
Copy link
Contributor

Meant to trigger integration (stopped the notebooks pipeline)

@seldondev
Copy link
Collaborator

Tue Dec 15 19:40:42 UTC 2020
The logs for [integration] [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-2782/19.log

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

@seldondev
Copy link
Collaborator

seldondev commented Dec 15, 2020

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

Test name Commit Details Rerun command
notebooks f77fb1c 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 jenkins-x/lighthouse repository. I understand the commands that are listed here.

@axsaucedo
Copy link
Contributor

/test integration

@seldondev
Copy link
Collaborator

Wed Dec 16 08:36:27 UTC 2020
The logs for [integration] [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-2782/20.log

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

@seldondev
Copy link
Collaborator

Wed Dec 16 09:58:02 UTC 2020
The logs for [lint] [22] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-2782/22.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-2782 --build=22

@seldondev
Copy link
Collaborator

Wed Dec 16 09:58:07 UTC 2020
The logs for [pr-build] [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-2782/21.log

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

@axsaucedo axsaucedo merged commit e51c556 into SeldonIO:master Dec 16, 2020
@axsaucedo axsaucedo mentioned this pull request Dec 16, 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.

SC Operator continues to reconcile objects that are being (foreground) delete
3 participants