Skip to content

disable GC for custom resources#47432

Merged
k8s-github-robot merged 1 commit intokubernetes:masterfrom
deads2k:crd-13-gc-off
Jun 15, 2017
Merged

disable GC for custom resources#47432
k8s-github-robot merged 1 commit intokubernetes:masterfrom
deads2k:crd-13-gc-off

Conversation

@deads2k
Copy link
Copy Markdown
Contributor

@deads2k deads2k commented Jun 13, 2017

xref #47431

This prevents GC on CustomResources so you don't get an uncleared finalizer that prevents deletion

@deads2k deads2k added this to the v1.7 milestone Jun 13, 2017
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 13, 2017
@k8s-github-robot k8s-github-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note-label-needed labels Jun 13, 2017
@enisoc
Copy link
Copy Markdown
Contributor

enisoc commented Jun 13, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 13, 2017
@k8s-github-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, enisoc

Associated issue: 47431

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

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Jun 13, 2017
@enisoc enisoc added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Jun 13, 2017
@deads2k deads2k removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Jun 13, 2017
@deads2k
Copy link
Copy Markdown
Contributor Author

deads2k commented Jun 13, 2017

@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this

DefaultWatchCacheSize: etcdOptions.DefaultWatchCacheSize,
// garbage collection for custom resources is forced off until GC works with CRs.
// When GC is enabled, this turns back into etcdOptions.EnableGarbageCollection
EnableGarbageCollection: false,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@deads2k
Copy link
Copy Markdown
Contributor Author

deads2k commented Jun 13, 2017

@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this

1 similar comment
@sttts
Copy link
Copy Markdown
Contributor

sttts commented Jun 14, 2017

@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this

@deads2k
Copy link
Copy Markdown
Contributor Author

deads2k commented Jun 14, 2017

/retest

@marun marun added the sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. label Jun 14, 2017
@deads2k
Copy link
Copy Markdown
Contributor Author

deads2k commented Jun 14, 2017

/retest

@k8s-github-robot
Copy link
Copy Markdown

Automatic merge from submit-queue (batch tested with PRs 47204, 46808, 47432, 47400, 47099)

@k8s-github-robot k8s-github-robot merged commit d2eb68c into kubernetes:master Jun 15, 2017
k8s-github-robot pushed a commit that referenced this pull request Jun 16, 2017
Automatic merge from submit-queue (batch tested with PRs 47451, 47410, 47598, 47616, 47473)

CRD: Test delete both with and without cascading.

Fixes #47431

Depends on #47432 (included for now; will rebase if needed)
k8s-github-robot pushed a commit that referenced this pull request Jul 29, 2017
Automatic merge from submit-queue (batch tested with PRs 49538, 49708, 47665, 49750, 49528)

Enable garbage collection of custom resources

Enhance the garbage collector to periodically refresh the resources it monitors (via discovery) to enable custom resource definition GC (addressing #44507 and reverting #47432).

This is a replacement for #46000.

/cc @lavalamp @deads2k @sttts @caesarxuchao 

/ref #48065

```release-note
The garbage collector now supports custom APIs added via CustomeResourceDefinition or aggregated apiservers. Note that the garbage collector controller refreshes periodically, so there is a latency between when the API is added and when the garbage collector starts to manage it.
```
@deads2k deads2k deleted the crd-13-gc-off branch August 3, 2017 20:10
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants