Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Lens
Commits
81e6dc5d
Unverified
Commit
81e6dc5d
authored
3 years ago
by
Sebastian Malton
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Allow better typings for extending type of KubernetesCluster (#4843)
parent
e950d3a7
master
better-release-script
catalog-entity-detail-registry
consolidate-running-of-setups-on-application-start
dependabot/npm_and_yarn/react-select-5.3.2
dependabot/npm_and_yarn/react-window-1.8.7
dependabot/npm_and_yarn/types/node-14.18.16
dependabot/npm_and_yarn/types/webpack-env-1.16.4
di-stores
docs/api-all-exported
enhancement-node-vertical-metric-bars
entity-settings
extensions/lens-version-check
feature/auto-update
feature/context-providers
fix-change-os-theme-crash
fix-linter-errors
fix-optimise-update-events-from-buffer
fix-reload-list-items-on-mount
fix-remove-watch-flush-headers
fix-reseting-select-value
fix-resource-applier
fix/log-store-loading
fix/search_input_autofocus
front-end-routes-ocp
front-end-routes-ocp-2
front-end-routes-ocp-3
helm-repo-manager-removal
issue-1909
issue-3498
issue-3797
issue-4997
issue-5141
issue-5165
issue-5173
issue-5177
issue-5238
more-places-to-check-for-updates
release/v5.4
remove-unused-telemetry
show-extension-preferences-in-separate-page
squashed-update-injectable
turn-on-strict
ui-table-empty-state-lines
update-electon-builder-to-3-0-8
validate-cluster-model
websocket-catalog-sync
v5.5.0-beta.0
v5.4.6
v5.4.5
v5.4.4
v5.4.3
v5.4.2
v5.4.1
v5.4.0
v5.4.0-beta.5
v5.4.0-beta.4
v5.4.0-beta.3
v5.4.0-beta.2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/catalog-entities/kubernetes-cluster.ts
+5
-1
src/common/catalog-entities/kubernetes-cluster.ts
src/main/cluster-manager.ts
+1
-1
src/main/cluster-manager.ts
with
6 additions
and
2 deletions
+6
-2
src/common/catalog-entities/kubernetes-cluster.ts
+
5
-
1
View file @
81e6dc5d
...
...
@@ -58,7 +58,11 @@ export type KubernetesClusterStatusPhase = "connected" | "connecting" | "disconn
export
interface
KubernetesClusterStatus
extends
CatalogEntityStatus
{
}
export
class
KubernetesCluster
extends
CatalogEntity
<
KubernetesClusterMetadata
,
KubernetesClusterStatus
,
KubernetesClusterSpec
>
{
export
class
KubernetesCluster
<
Metadata
extends
KubernetesClusterMetadata
=
KubernetesClusterMetadata
,
Status
extends
KubernetesClusterStatus
=
KubernetesClusterStatus
,
Spec
extends
KubernetesClusterSpec
=
KubernetesClusterSpec
,
>
extends
CatalogEntity
<
Metadata
,
Status
,
Spec
>
{
public
static
readonly
apiVersion
:
string
=
"
entity.k8slens.dev/v1alpha1
"
;
public
static
readonly
kind
:
string
=
"
KubernetesCluster
"
;
...
...
This diff is collapsed.
Click to expand it.
src/main/cluster-manager.ts
+
1
-
1
View file @
81e6dc5d
...
...
@@ -48,7 +48,7 @@ export class ClusterManager extends Singleton {
);
reaction
(
()
=>
catalogEntityRegistry
.
getItemsByEntityClass
(
KubernetesCluster
),
()
=>
catalogEntityRegistry
.
getItemsByEntityClass
(
KubernetesCluster
)
as
KubernetesCluster
[]
,
entities
=>
this
.
syncClustersFromCatalog
(
entities
),
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help