kubernetes/test
Arda Güçlü 43d8b3459b Add manually invalidate cache documentation into delete
When CRDs are deleted, discovery local cache is not invalidated.
This brings about `resource not found` error when new CRD with same name is created
with different fields(ie. changing scope from cluster-wide to namespaced).
Because this already deleted CRD still stays in serverresources.json and kubectl tries to use it.

This local cached files have 10 minutes TTL. After deletion, if user waits 10 minutes,
files will be expired and deleted and there will be no errors. However, 10 minutes is a long time
and cache needs to be invalidated after deletion occurs.

This PR adds a document into delete command by noting that there might be a need to invalidate discovery
cache when CRD is deleted. In addition to that this PR adds a test to catch this behavior.
2022-01-26 09:01:46 +03:00
..
cmd Add manually invalidate cache documentation into delete 2022-01-26 09:01:46 +03:00
conformance OWNERS cleanup - Jan 2021 Week 1 2022-01-10 08:14:29 -05:00
e2e Merge pull request #107763 from smarterclayton/wait_for_kuberoot_ca 2022-01-25 19:20:45 -08:00
e2e_kubeadm Merge pull request #106648 from calvin0327/remove-dualStack-featureGate 2021-12-15 17:27:18 -08:00
e2e_node Merge pull request #106932 from SergeyKanzhelev/removeDynamicKubeletConfig 2022-01-25 19:20:25 -08:00
fixtures Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
fuzz hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
images [go] update to Go 1.17.6 2022-01-18 14:35:24 +05:30
instrumentation remove DynamicKubeletConfig logic from kubelet 2022-01-19 22:38:04 +00:00
integration Merge pull request #107765 from Jefftree/ssa-integration-enable 2022-01-25 18:18:37 -08:00
kubemark There are no more Feature:Performance tests any longer, removing the fallback option 2021-11-10 00:04:48 +00:00
list Remove KubeDescribe 2021-03-04 07:54:53 +01:00
soak/serve_hostnames hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
typecheck Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
utils use a community owned domain for the invalid registry 2022-01-10 19:37:46 +01:00
OWNERS OWNERS cleanup - Jan 2021 Week 1 2022-01-10 08:14:29 -05:00