diff --git a/src/cache.ts b/src/cache.ts index 65b5ccc98e..ade3d4611a 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -186,6 +186,11 @@ export class ListWatch implements ObjectCache, In private watchHandler(phase: string, obj: T, watchObj?: any): void { switch (phase) { + case 'ERROR': + if ((obj as { code?: number }).code === 410) { + this.resourceVersion = ''; + } + break; case 'ADDED': case 'MODIFIED': addOrUpdateObject(