Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue c8841cea30
Merge pull request #60592 from xmudrii/crd-tests
Automatic merge from submit-queue (batch tested with PRs 61402, 61143, 61427, 60592). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

apiextensions-apiserver: TestFinaliazationAndDeletion integration test

**What this PR does / why we need it**: This PR adds an integration test for [behavior described in the issue #60538 (comment)](https://github.com/kubernetes/kubernetes/issues/60538#issuecomment-369182483).

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Partially addresses #60538 -- tests

**Special notes for your reviewer**: This is based of the PR #60542, so this shouldn't be merged before that one. Tests are failing on the line 155, due to the timeout/non-nil error. I've tried to debug it furtherly, and found out that the CRD is still terminating. 

Actually, the CRD gets deleted, but it takes some time. For example, if you add `time.Sleep(x * time.Second)` on the line 152, the test would pass. The problem is this isn't predictable. With `x` of 6-10 seconds, I manage to get this test passing, but there's zero guarantees the CRD will get deleted for that 10 seconds.

I have found the `wait.Poll` function in some tests, but I'm not sure can it fix the problem I have.

This is my first PR to the Kubernetes project, so I could be missing something. Any idea is appreciated. :)

**Release note**:

```release-note
NONE
```

/sig api-machinery
/area custom-resources
/cc nikhita sttts liggitt
2018-03-27 15:33:15 -07:00
.github
api Merge pull request #60452 from danwinship/networkpolicy-pod-plus-ns 2018-03-24 13:34:27 -07:00
build Merge pull request #60915 from CaoShuFeng/htpasswd 2018-03-22 07:15:22 -07:00
cluster Merge pull request #61427 from hyperbolic2346/mwilson/admission 2018-03-27 15:33:12 -07:00
cmd Merge pull request #61166 from hzxuzhonghu/authz-flag-validate 2018-03-26 23:20:14 -07:00
docs Merge pull request #60452 from danwinship/networkpolicy-pod-plus-ns 2018-03-24 13:34:27 -07:00
examples Merge pull request #58349 from humblec/patch-2 2018-03-20 18:34:35 -07:00
Godeps run hack/godep-restore.sh && hack/godep-save.sh 2018-03-23 16:17:13 -07:00
hack Merge pull request #61692 from CaoShuFeng/output-version 2018-03-27 09:47:18 -07:00
logo
pkg Merge pull request #61143 from satyasm/ipam-perf-cloud-mock 2018-03-27 15:33:09 -07:00
plugin Merge pull request #60519 from bsalamat/auto_prio_class 2018-03-26 23:20:05 -07:00
staging Merge pull request #60592 from xmudrii/crd-tests 2018-03-27 15:33:15 -07:00
test Merge pull request #61143 from satyasm/ipam-perf-cloud-mock 2018-03-27 15:33:09 -07:00
third_party Merge pull request #60695 from rmmh/sh2ju-awk 2018-03-24 00:34:28 -07:00
translations
vendor Merge pull request #61354 from schylek/master 2018-03-21 23:44:07 -07:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md
CHANGELOG-1.5.md
CHANGELOG-1.6.md
CHANGELOG-1.7.md Update CHANGELOG-1.7.md for v1.7.15. 2018-03-19 13:10:22 -07:00
CHANGELOG-1.8.md
CHANGELOG-1.9.md Merge pull request #61268 from jianglingxia/change1.9-080316 2018-03-21 16:01:35 -07:00
CHANGELOG-1.10.md Fix incorrect changelog - dynamic kubelet config is not beta 2018-03-27 09:43:25 -07:00
CHANGELOG.md Marks 1.10 as the current release 2018-03-26 17:08:54 -07:00
code-of-conduct.md
CONTRIBUTING.md
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Merge pull request #61463 from dixudx/myself_cli_reviewer 2018-03-25 08:03:05 -07:00
README.md
SUPPORT.md
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts; providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

For the full story, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide, and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics