You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -219,7 +218,11 @@ Hook that provides information about user access to a given resource. It returns
219
218
[discrete]
220
219
== `useResolvedExtensions`
221
220
222
-
React hook for consuming Console extensions with resolved `CodeRef` properties. This hook accepts the same argument(s) as `useExtensions` hook and returns an adapted list of extension instances, resolving all code references within each extension's properties. Initially, the hook returns an empty array. Once the resolution is complete, the React component is re-rendered with the hook returning an adapted list of extensions. When the list of matching extensions changes, the resolution is restarted. The hook will continue to return the previous result until the resolution completes. The hook's result elements are guaranteed to be referentially stable across re-renders. It returns a tuple containing a list of adapted extension instances with resolved code references, a boolean flag indicating whether the resolution is complete, and a list of errors detected during the resolution.
221
+
React hook for consuming Console extensions with resolved `CodeRef` properties. This hook accepts the same argument(s) as `useExtensions` hook and returns an adapted list of extension instances, resolving all code references within each extension's properties.
222
+
223
+
Initially, the hook returns an empty array. After the resolution is complete, the React component is re-rendered with the hook returning an adapted list of extensions. When the list of matching extensions changes, the resolution is restarted. The hook will continue to return the previous result until the resolution completes.
224
+
225
+
The hook's result elements are guaranteed to be referentially stable across re-renders. It returns a tuple containing a list of adapted extension instances with resolved code references, a boolean flag indicating whether the resolution is complete, and a list of errors detected during the resolution.
223
226
224
227
.Example
225
228
[source,ts]
@@ -239,7 +242,7 @@ not the extension meets desired type constraints
239
242
[discrete]
240
243
== `HorizontalNav`
241
244
242
-
A component that creates a Navigation bar for a page.- Routing is handled as part of the component.- `console.tab/horizontalNav` can be used to add additional content to any horizontal nav.
245
+
A component that creates a Navigation bar for a page. Routing is handled as part of the component. `console.tab/horizontalNav` can be used to add additional content to any horizontal navigation.
|`className` |(optional) option class name for styling
337
340
|===
@@ -365,9 +368,9 @@ TableColumns
365
368
namespace column will be included, regardless of column management
366
369
selections
367
370
368
-
|`\{string} [options.columnManagementID]` |(optional) A unique id
371
+
|`\{string} [options.columnManagementID]` |(optional) A unique ID
369
372
used to persist and retrieve column management selections to and from
370
-
user settings. Usually a 'group~verion~kind' string for a resource.
373
+
user settings. Usually a group/version/kind (GVK) string for a resource.
371
374
|===
372
375
373
376
A tuple containing the current user selected active columns (a subset of options.columns), and a boolean flag indicating whether user settings have been loaded.
|`initResources` |resources need to be watched as key-value pair,
760
+
|`initResources` |Resources must be watched as key-value pair,
758
761
wherein key will be unique to resource and value will be options needed
759
762
to watch for the respective resource.
760
763
|===
@@ -813,12 +816,12 @@ the active cluster the user has selected
813
816
[discrete]
814
817
== `getConsoleRequestHeaders`
815
818
816
-
A function that creates impersonation and multicluster related headers for API requests using current redux state. it returns an object containing the appropriate impersonation and clustr requst headers, based on redux state.
819
+
A function that creates impersonation and multicluster related headers for API requests using current redux state. It returns an object containing the appropriate impersonation and clustr requst headers, based on redux state.
817
820
818
821
[cols=",",options="header",]
819
822
|===
820
823
|Parameter Name |Description
821
-
|`targetCluster` |override the current active cluster with the provided
824
+
|`targetCluster` |Override the current active cluster with the provided
822
825
targetCluster
823
826
|===
824
827
@@ -835,7 +838,7 @@ model. In case of failure, the promise gets rejected with HTTP error response.
835
838
836
839
|`options.model` |k8s model
837
840
838
-
|`options.name` |The name of the resource, if not provided then it'll
841
+
|`options.name` |The name of the resource, if not provided then it will
839
842
look for all the resources matching the model.
840
843
841
844
|`options.ns` | The namespace to look into, should not be specified
@@ -847,7 +850,7 @@ for cluster-scoped resources.
847
850
URL.
848
851
849
852
|`options.requestInit` |The fetch init object to use. This can have
850
-
request headers, method, redirect, etc. See more link:{power-bi-url}[Interface RequestInit]
853
+
request headers, method, redirect, etc. See link:{power-bi-url}[Interface RequestInit] for more.
851
854
|===
852
855
853
856
[discrete]
@@ -862,7 +865,7 @@ It creates a resource in the cluster, based on the provided options. It returns
862
865
863
866
|`options.model` |k8s model
864
867
865
-
|`options.data` |payload for the resource to be created
868
+
|`options.data` |Payload for the resource to be created
866
869
867
870
|`options.path` |Appends as subpath if provided
868
871
@@ -878,16 +881,16 @@ It updates the entire resource in the cluster, based on providedoptions. When a
878
881
[cols=",",options="header",]
879
882
|===
880
883
|Parameter Name |Description
881
-
|`options` |which are passed as key-value pair in the map
884
+
|`options` |Which are passed as key-value pair in the map
882
885
883
886
|`options.model` | k8s model
884
887
885
-
|`options.data` |payload for the k8s resource to be updated
888
+
|`options.data` |Payload for the k8s resource to be updated
886
889
887
-
|`options.ns` |namespace to look into, it should not be specified for
890
+
|`options.ns` |Namespace to look into, it should not be specified for
888
891
cluster-scoped resources.
889
892
890
-
|`options.name` |resource name to be updated.
893
+
|`options.name` |Resource name to be updated.
891
894
892
895
|`options.path` | Appends as subpath if provided
893
896
@@ -899,7 +902,7 @@ URL.
899
902
== `k8sPatchResource`
900
903
901
904
It patches any resource in the cluster, based on provided options. When a client needs to perform the partial update, they can use
902
-
k8sPatch. Alternatively can use k8sUpdate to replace an existing resource entirely. See more link:https://datatracker.ietf.org/doc/html/rfc6902[Data Tracker]. It returns a promise that resolves to the response of the resource patched. In case of failure promise gets rejected with HTTP error response.
905
+
k8sPatch. Alternatively can use k8sUpdate to replace an existing resource entirely. See link:https://datatracker.ietf.org/doc/html/rfc6902[Data Tracker] for more. It returns a promise that resolves to the response of the resource patched. In case of failure promise gets rejected with HTTP error response.
903
906
904
907
[cols=",",options="header",]
905
908
|===
@@ -922,7 +925,7 @@ URL.
922
925
[discrete]
923
926
== `k8sDeleteResource`
924
927
925
-
It deletes resources from the cluster, based on the provided model, resource. The garbage collection works based on 'Foreground'|'Background', can be configured with propagationPolicy property in provided model or passed in json. It returns a promise that resolves to the response of kind Status. In case of failure promise gets rejected with HTTP error response.
928
+
It deletes resources from the cluster, based on the provided model, resource. The garbage collection works based on `Foreground`|`Background` can be configured with propagationPolicy property in provided model or passed in json. It returns a promise that resolves to the response of kind Status. In case of failure promise gets rejected with HTTP error response.
@@ -931,7 +934,7 @@ It deletes resources from the cluster, based on the provided model, resource. Th
931
934
[cols=",",options="header",]
932
935
|===
933
936
|Parameter Name |Description
934
-
|`options` |which are passed as key-value pair in the map.
937
+
|`options` |Which are passed as key-value pair in the map.
935
938
936
939
|`options.model` | k8s model
937
940
@@ -943,7 +946,7 @@ It deletes resources from the cluster, based on the provided model, resource. Th
943
946
URL.
944
947
945
948
|`options.requestInit` |The fetch init object to use. This can have
946
-
request headers, method, redirect, etc. See more link:{power-bi-url}[Interface Request Init]
949
+
request headers, method, redirect, etc. See link:{power-bi-url}[Interface RequestInit] for more.
947
950
948
951
949
952
|`options.json` |Can control garbage collection of resources
@@ -966,13 +969,13 @@ Lists the resources as an array in the cluster, based on provided options. It re
966
969
URL and can pass label selector's as well with key "labelSelector".
967
970
968
971
|`options.requestInit` |The fetch init object to use. This can have
969
-
request headers, method, redirect, etc. See more link:{power-bi-url}[Interface RequestInit]
972
+
request headers, method, redirect, etc. See link:{power-bi-url}[Interface RequestInit] for more.
970
973
|===
971
974
972
975
[discrete]
973
976
== `k8sListResourceItems`
974
977
975
-
Same interface as k8sListResource but returns the sub items. It returns the apiVersion for the model i.e `group/version`.
978
+
Same interface as k8sListResource but returns the sub items. It returns the apiVersion for the model, i.e., `group/version`.
976
979
977
980
[discrete]
978
981
== `getAPIVersionForModel`
@@ -988,7 +991,7 @@ Provides apiVersion for a k8s model.
988
991
[discrete]
989
992
== `getGroupVersionKindForResource`
990
993
991
-
Provides a group, version, and kind for a resource. It returns the group, version, kind for the provided resource. If the resource does not have an API group, group "core" will be returned.If the resource has an invalid apiVersion then it'll throw Error.
994
+
Provides a group, version, and kind for a resource. It returns the group, version, kind for the provided resource. If the resource does not have an API group, group "core" will be returned.If the resource has an invalid apiVersion, then it will throw an Error.
992
995
993
996
[cols=",",options="header",]
994
997
|===
@@ -1270,14 +1273,14 @@ section on top of the editor.
1270
1273
|`onSave` |Callback called when the command CTRL / CMD + S is triggered.
1271
1274
1272
1275
|`ref` |React reference to `{ editor?: IStandaloneCodeEditor }`. Using
1273
-
the 'editor' property, you are able to access to all methods to control
1276
+
the `editor` property, you are able to access to all methods to control
1274
1277
the editor.
1275
1278
|===
1276
1279
1277
1280
[discrete]
1278
1281
== `ResourceYAMLEditor`
1279
1282
1280
-
A lazy loaded YAML editor for Kubernetes resources with hover help and completion. The component use the YAMLEditor and add on top of it more functionality likeresource update handling, alerts, save, cancel and reload buttons, accessibility and more. Unless `onSave` callback is provided, the resource update is automatically handled.It should be wrapped in a React.Suspense component.
1283
+
A lazy loaded YAML editor for Kubernetes resources with hover help and completion. The component use the YAMLEditor and add on top of it more functionality likeresource update handling, alerts, save, cancel and reload buttons, accessibility and more. Unless `onSave` callback is provided, the resource update is automatically handled.It should be wrapped in a `React.Suspense` component.
1281
1284
1282
1285
.Example
1283
1286
[source,text]
@@ -1476,7 +1479,7 @@ Creates full page ErrorBoundaryFallbackPage component to display the "Oh no! Som
1476
1479
[discrete]
1477
1480
== `PerspectiveContext`
1478
1481
1479
-
@deprecated - use the provided `usePerspectiveContext` insteadCreates the perspective context.
1482
+
Deprecated: Use the provided `usePerspectiveContext` instead. Creates the perspective context.
1480
1483
1481
1484
[cols=",",options="header",]
1482
1485
|===
@@ -1487,8 +1490,7 @@ Creates full page ErrorBoundaryFallbackPage component to display the "Oh no! Som
1487
1490
[discrete]
1488
1491
== `useAccessReviewAllowed`
1489
1492
1490
-
@deprecated - Use useAccessReview from @console/dynamic-plugin-sdk instead.Hook that provides allowed status about user access to a given
1491
-
resource. It returns the `isAllowed` boolean value.
1493
+
Deprecated: Use `useAccessReview` from `@console/dynamic-plugin-sdk` instead. Hook that provides allowed status about user access to a given resource. It returns the `isAllowed` boolean value.
1492
1494
1493
1495
[cols=",",options="header",]
1494
1496
|===
@@ -1500,11 +1502,12 @@ resource. It returns the `isAllowed` boolean value.
1500
1502
[discrete]
1501
1503
== `useSafetyFirst`
1502
1504
1503
-
@deprecated - This hook is not related to console functionality.Hook that ensures a safe asynchronnous setting of React state in case a given
1504
-
component could be unmounted. It returns an array with a pair of state value and it's set function.
1505
+
Deprecated: This hook is not related to console functionality. Hook that ensures a safe asynchronnous setting of React state in case a given component could be unmounted. It returns an array with a pair of state value and its set function.
0 commit comments