@kubernetesjs/react 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +3 -3
- package/package.json +3 -3
package/esm/index.js
CHANGED
|
@@ -2649,12 +2649,12 @@ export function usePatchCoreV1PersistentVolumeStatus() {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
});
|
|
2651
2651
|
}
|
|
2652
|
-
export function
|
|
2652
|
+
export function useListCoreV1PodForAllNamespacesQuery(params) {
|
|
2653
2653
|
const client = useKubernetes().client;
|
|
2654
2654
|
return useQuery({
|
|
2655
2655
|
queryKey: [...API_V1_PODS_KEY],
|
|
2656
2656
|
queryFn: async () => {
|
|
2657
|
-
return await client.
|
|
2657
|
+
return await client.listCoreV1PodForAllNamespaces(params);
|
|
2658
2658
|
},
|
|
2659
2659
|
enabled: true
|
|
2660
2660
|
});
|
package/index.d.ts
CHANGED
|
@@ -181,7 +181,7 @@ export declare function usePatchCoreV1PersistentVolume(): import("@tanstack/reac
|
|
|
181
181
|
export declare function useReadCoreV1PersistentVolumeStatusQuery(params: ReadCoreV1PersistentVolumeStatusRequest): import("@tanstack/react-query").UseQueryResult<PersistentVolume, Error>;
|
|
182
182
|
export declare function useReplaceCoreV1PersistentVolumeStatus(): import("@tanstack/react-query").UseMutationResult<PersistentVolume, Error, ReplaceCoreV1PersistentVolumeStatusRequest, unknown>;
|
|
183
183
|
export declare function usePatchCoreV1PersistentVolumeStatus(): import("@tanstack/react-query").UseMutationResult<PersistentVolume, Error, PatchCoreV1PersistentVolumeStatusRequest, unknown>;
|
|
184
|
-
export declare function
|
|
184
|
+
export declare function useListCoreV1PodForAllNamespacesQuery(params: ListCoreV1PodForAllNamespacesRequest): import("@tanstack/react-query").UseQueryResult<PodList, Error>;
|
|
185
185
|
export declare function useListCoreV1PodTemplateForAllNamespacesQuery(params: ListCoreV1PodTemplateForAllNamespacesRequest): import("@tanstack/react-query").UseQueryResult<PodTemplateList, Error>;
|
|
186
186
|
export declare function useListCoreV1ReplicationControllerForAllNamespacesQuery(params: ListCoreV1ReplicationControllerForAllNamespacesRequest): import("@tanstack/react-query").UseQueryResult<ReplicationControllerList, Error>;
|
|
187
187
|
export declare function useListCoreV1ResourceQuotaForAllNamespacesQuery(params: ListCoreV1ResourceQuotaForAllNamespacesRequest): import("@tanstack/react-query").UseQueryResult<ResourceQuotaList, Error>;
|
package/index.js
CHANGED
|
@@ -182,7 +182,7 @@ exports.usePatchCoreV1PersistentVolume = usePatchCoreV1PersistentVolume;
|
|
|
182
182
|
exports.useReadCoreV1PersistentVolumeStatusQuery = useReadCoreV1PersistentVolumeStatusQuery;
|
|
183
183
|
exports.useReplaceCoreV1PersistentVolumeStatus = useReplaceCoreV1PersistentVolumeStatus;
|
|
184
184
|
exports.usePatchCoreV1PersistentVolumeStatus = usePatchCoreV1PersistentVolumeStatus;
|
|
185
|
-
exports.
|
|
185
|
+
exports.useListCoreV1PodForAllNamespacesQuery = useListCoreV1PodForAllNamespacesQuery;
|
|
186
186
|
exports.useListCoreV1PodTemplateForAllNamespacesQuery = useListCoreV1PodTemplateForAllNamespacesQuery;
|
|
187
187
|
exports.useListCoreV1ReplicationControllerForAllNamespacesQuery = useListCoreV1ReplicationControllerForAllNamespacesQuery;
|
|
188
188
|
exports.useListCoreV1ResourceQuotaForAllNamespacesQuery = useListCoreV1ResourceQuotaForAllNamespacesQuery;
|
|
@@ -3297,12 +3297,12 @@ function usePatchCoreV1PersistentVolumeStatus() {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
});
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3300
|
+
function useListCoreV1PodForAllNamespacesQuery(params) {
|
|
3301
3301
|
const client = (0, context_1.useKubernetes)().client;
|
|
3302
3302
|
return (0, react_query_1.useQuery)({
|
|
3303
3303
|
queryKey: [...API_V1_PODS_KEY],
|
|
3304
3304
|
queryFn: async () => {
|
|
3305
|
-
return await client.
|
|
3305
|
+
return await client.listCoreV1PodForAllNamespaces(params);
|
|
3306
3306
|
},
|
|
3307
3307
|
enabled: true
|
|
3308
3308
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubernetesjs/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
5
5
|
"description": "Fully Typed Kubernetes React Hooks",
|
|
6
6
|
"keywords": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@tanstack/react-query": "5.79.2",
|
|
54
|
-
"kubernetesjs": "^0.
|
|
54
|
+
"kubernetesjs": "^0.7.0",
|
|
55
55
|
"react": "^18.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"@tanstack/react-query": "5.79.2",
|
|
64
64
|
"react": "^18.2.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "58b4ffddde2d9d12304448452449b828ee8aa4c5"
|
|
67
67
|
}
|