kubernetes/hack/testdata
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
..
CRD Add manually invalidate cache documentation into delete 2022-01-26 09:01:46 +03:00
diff diff: Fix overlapping filenames 2018-12-11 09:19:52 -08:00
filter updates pause image references 2021-08-29 21:50:05 -07:00
kustomize add cmdline tests for -k 2019-02-25 16:31:03 -08:00
levee Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
null-propagation Switch test manifests to apps/v1, remove beta workloads calls 2019-06-22 13:58:07 -07:00
prune updates pause image references 2021-08-29 21:50:05 -07:00
prune-reap
recursive Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
retainKeys/deployment Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
sorted-pods updates pause image references 2021-08-29 21:50:05 -07:00
auth-tokens.csv
ca.crt Presence of bearer token should cancel exec action 2020-07-02 12:12:32 +02:00
configmap.yaml
csr.yml update test-cmd to avoid removed beta APIs 2021-04-19 10:06:37 -04:00
deployment-label-change1.yaml Switch test manifests to apps/v1, remove beta workloads calls 2019-06-22 13:58:07 -07:00
deployment-label-change2.yaml Switch test manifests to apps/v1, remove beta workloads calls 2019-06-22 13:58:07 -07:00
deployment-label-change3.yaml Switch test manifests to apps/v1, remove beta workloads calls 2019-06-22 13:58:07 -07:00
deployment-multicontainer-resources.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
deployment-multicontainer.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
deployment-revision1.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
deployment-revision2.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
deployment-with-UnixUserID.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
dockerconfig.json Fix kubectl create secret docker-registry 2020-05-15 12:14:03 +08:00
frontend-controller.yaml
frontend-replicaset.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
invalid-pod.yaml kubectl-diff: Test return code on failure and changes 2020-01-21 15:34:22 -08:00
invalid-rc-with-empty-args.yaml
kubernetes-service.yaml
list.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
multi-resource-1.yaml updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-2.yaml Even with build error, kubectl apply should apply all valid resources 2020-04-04 15:48:31 -07:00
multi-resource-3.yaml updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-4.yaml update test-cmd to avoid removed beta APIs 2021-04-19 10:06:37 -04:00
multi-resource-json-modify.json updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-json.json updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-list-modify.json updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-list.json updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-rclist-modify.json updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-rclist.json updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-svclist-modify.json
multi-resource-svclist.json
multi-resource-yaml-modify.yaml updates pause image references 2021-08-29 21:50:05 -07:00
multi-resource-yaml.yaml updates pause image references 2021-08-29 21:50:05 -07:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
pod-apply.yaml updates pause image references 2021-08-29 21:50:05 -07:00
pod-changed.yaml update pause image 3.4.1 for hack testdatas only 2021-02-01 15:09:25 +08:00
pod-with-api-env.yaml
pod-with-large-name.yaml Update e2e test images url 2021-07-27 22:01:43 -07:00
pod-with-precision.json updates pause image references 2021-08-29 21:50:05 -07:00
pod.yaml updates pause image references 2021-08-29 21:50:05 -07:00
README.md Ensure testing credentials are labeled as such 2020-02-04 10:36:05 -08:00
redis-slave-replicaset.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
rollingupdate-daemonset-rv2.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
rollingupdate-daemonset.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
rollingupdate-statefulset-rv2.yaml Switch test manifests to apps/v1, remove beta workloads calls 2019-06-22 13:58:07 -07:00
rollingupdate-statefulset.yaml Switch test manifests to apps/v1, remove beta workloads calls 2019-06-22 13:58:07 -07:00
scale-deploy-1.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
scale-deploy-2.yaml Update test manifests to apps/v1 2018-12-19 11:19:12 -05:00
scale-deploy-3.yaml delete all duplicate empty blanks 2019-02-23 10:28:04 +08:00
secret.yaml
service-revision1.yaml kubectl: recreating resources for immutable fields when force is applied 2018-08-09 22:59:02 +08:00
service-revision2.yaml kubectl: recreating resources for immutable fields when force is applied 2018-08-09 22:59:02 +08:00
tls.crt
tls.key

Keys in this directory are generated for testing purposes only.