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

Ignore resources when DeletionTimestamp is set. #3036

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Jan 30, 2019

When we had finalizers previously we would race with K8s GC to recreate our children as K8s reaped them.

The simplest way to test this is to enable "foreground" deletion in our e2e tests, which is implemented as a finalizer.

Fixes: #2678

WIP until #3035 merges

@knative-prow-robot knative-prow-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 30, 2019
@mattmoor mattmoor force-pushed the support-finalizers branch 5 times, most recently from 8a16270 to 49e2c39 Compare January 30, 2019 19:57
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 30, 2019
@mattmoor mattmoor changed the title [WIP] Ignore resources when DeletionTimestamp is set. Ignore resources when DeletionTimestamp is set. Jan 30, 2019
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 30, 2019
@mattmoor
Copy link
Member Author

It is notable that coverage is expected to fail due to some of our laggards, which sit below 80%

When we had finalizers previously we would race with K8s GC to recreate our children as K8s reaped them.

The simplest way to test this is to enable "foreground" deletion in our e2e tests, which is implemented as a finalizer.

Fixes: knative#2678
@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-serving-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/v1alpha1/autoscaling/hpa/hpa.go 61.6% 62.7% 1.0
pkg/reconciler/v1alpha1/autoscaling/kpa/kpa.go 87.5% 83.3% -4.2
pkg/reconciler/v1alpha1/clusteringress/clusteringress.go 79.0% 78.4% -0.6
pkg/reconciler/v1alpha1/configuration/configuration.go 91.8% 91.3% -0.6
pkg/reconciler/v1alpha1/revision/revision.go 91.6% 91.7% 0.2
pkg/reconciler/v1alpha1/service/service.go 92.2% 92.3% 0.1

@knative-prow-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
pull-knative-serving-go-coverage 68d109d link /test pull-knative-serving-go-coverage

Full PR test history. Your PR dashboard.

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.

@vaikas
Copy link
Contributor

vaikas commented Jan 30, 2019

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 30, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, vaikas-google

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

@knative-prow-robot knative-prow-robot merged commit f133e07 into knative:master Jan 30, 2019
ZhiminXiang pushed a commit to ZhiminXiang/serving-1 that referenced this pull request Feb 7, 2019
When we had finalizers previously we would race with K8s GC to recreate our children as K8s reaped them.

The simplest way to test this is to enable "foreground" deletion in our e2e tests, which is implemented as a finalizer.

Fixes: knative#2678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants