kubernetes/hack/testdata/CRD
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
..
bar.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
example-crd-1-cluster-scoped-resource.yaml Add manually invalidate cache documentation into delete 2022-01-26 09:01:46 +03:00
example-crd-1-cluster-scoped.yaml Add manually invalidate cache documentation into delete 2022-01-26 09:01:46 +03:00
example-crd-1-namespaced-resource.yaml Add manually invalidate cache documentation into delete 2022-01-26 09:01:46 +03:00
example-crd-1-namespaced.yaml Add manually invalidate cache documentation into delete 2022-01-26 09:01:46 +03:00
foo-2.yaml add --all-namespaces to kubectl annotate,label 2021-04-26 13:04:19 -04:00
foo-added-subfield.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
foo-deleted-subfield.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
foo-updated-subfield.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
foo.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
multi-crd-list-added-field.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
multi-crd-list-deleted-field.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
multi-crd-list-updated-field.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
multi-crd-list.yaml Rename TPR to CRD to be consistent 2017-10-01 21:13:24 +05:30
resource.yaml update -o name format to kind.group/name 2018-02-15 10:33:06 -05:00