-
Notifications
You must be signed in to change notification settings - Fork 695
CONSOLE-5031: Remove Firehose Component and Fix and Cleanup Impacted Types #16096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -226,6 +226,22 @@ export type WatchK8sResourcesGeneric = { | |
| }; | ||
| }; | ||
|
|
||
| /** | ||
| * WatchK8sResource with a `prop` field that serves as a key to identify | ||
| * this resource in multi-resource watch results. Used by dashboard extensions | ||
| * and legacy components that watch multiple K8s resources simultaneously. | ||
| */ | ||
| export type WatchK8sResourceWithProp = WatchK8sResource & { | ||
| prop: string; | ||
| }; | ||
|
|
||
| export type WatchK8sResult<R extends K8sResourceCommon | K8sResourceCommon[]> = [R, boolean, any]; | ||
|
|
||
| /** | ||
| * @deprecated Use WatchK8sResource with useK8sWatchResource hook instead. | ||
| * FirehoseResource will be removed in a future release. | ||
| * @see WatchK8sResource | ||
| */ | ||
| export type FirehoseResource = { | ||
| kind: K8sResourceKindReference; | ||
| name?: string; | ||
|
|
@@ -239,6 +255,10 @@ export type FirehoseResource = { | |
| fieldSelector?: string; | ||
| }; | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leaving the following Firehose types for backward compatibility in case any external plugins have imported them. Can remove them once I double check they are not being used externally.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vojtechszocs @logonoff Could you confirm ☝ |
||
| /** | ||
| * @deprecated Use WatchK8sResultsObject instead. FirehoseResult will be removed in a future release. | ||
| * @see WatchK8sResultsObject | ||
| */ | ||
| export type FirehoseResult< | ||
| R extends K8sResourceCommon | K8sResourceCommon[] = K8sResourceCommon[] | ||
| > = { | ||
|
|
@@ -249,12 +269,14 @@ export type FirehoseResult< | |
| kind?: string; | ||
| }; | ||
|
|
||
| /** | ||
| * @deprecated Use WatchK8sResults instead. FirehoseResourcesResult will be removed in a future release. | ||
| * @see WatchK8sResults | ||
| */ | ||
| export type FirehoseResourcesResult = { | ||
| [key: string]: FirehoseResult<K8sResourceCommon | K8sResourceCommon[]>; | ||
| }; | ||
|
|
||
| export type WatchK8sResult<R extends K8sResourceCommon | K8sResourceCommon[]> = [R, boolean, any]; | ||
|
|
||
| export type UseK8sWatchResource = <R extends K8sResourceCommon | K8sResourceCommon[]>( | ||
| initResource: WatchK8sResource | null, | ||
| ) => WatchK8sResult<R>; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to update the 4.22 changelog with this breaking change