mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: resourceVersion can be a number
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
1 parent
6fc01284d3
commit
1f8c9c5103
3 files changed
+6
-13
No files matched your search
@@ -97,7 +97,7 @@ export interface DerivedKubeApiOptions {
|
||||
|
||||
export interface KubeApiQueryParams {
|
||||
watch?: boolean | number;
|
||||
resourceVersion?: string;
|
||||
resourceVersion?: string | number;
|
||||
timeoutSeconds?: number;
|
||||
limit?: number; // doesn't work with ?watch
|
||||
continue?: string; // might be used with ?limit from second request
|
||||
@@ -272,7 +272,7 @@ export class KubeApi<
|
||||
|
||||
public readonly objectConstructor: KubeObjectConstructor<Object, Data>;
|
||||
protected readonly request: KubeJsonApi;
|
||||
protected readonly resourceVersions = new Map<string, string>();
|
||||
protected readonly resourceVersions = new Map<string, string | number>();
|
||||
protected readonly watchDisposer: Disposer | undefined;
|
||||
private watchId = 1;
|
||||
protected readonly doCheckPreferredVersion: boolean;
|
||||
@@ -385,7 +385,7 @@ export class KubeApi<
|
||||
}
|
||||
}
|
||||
|
||||
setResourceVersion(namespace = "", newVersion: string) {
|
||||
setResourceVersion(namespace = "", newVersion: string | number) {
|
||||
this.resourceVersions.set(namespace, newVersion);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user