mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-08-08 23:37:11 +00:00
Merge pull request #109896 from superbrothers/kubectl-delete-fix-discovery-cache-ttl
Fix discovery cache TTL to 6 hours
This commit is contained in:
@@ -110,7 +110,7 @@ run_crd_deletion_recreation_tests() {
|
||||
output_message=$(kubectl delete -f hack/testdata/CRD/example-crd-1-cluster-scoped.yaml)
|
||||
kube::test::if_has_string "${output_message}" 'deleted'
|
||||
# Invalidate local cache because cluster scoped CRD in cache is stale.
|
||||
# Invalidation of cache may take up to 10 minutes and we are manually
|
||||
# Invalidation of cache may take up to 6 hours and we are manually
|
||||
# invalidate cache and expect that scope changed CRD should be created without problem.
|
||||
kubectl api-resources
|
||||
output_message=$(kubectl apply -f hack/testdata/CRD/example-crd-1-namespaced.yaml)
|
||||
|
||||
Reference in New Issue
Block a user