mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint: comma-spacing (error) & comma-dangle (error) (#4200)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
02e77afcd1
commit
c6dce043a7
406 files changed
+1590
-1580
No files matched your search
@@ -43,7 +43,7 @@ async function addSyncEntries(filePaths: string[]) {
|
||||
<p>Selected items has been added to Kubeconfig Sync.</p><br/>
|
||||
<p>Check the <Link style={{ textDecoration: "underline" }} to={`${kubernetesURL()}#kube-sync`}>Preferences</Link>{" "}
|
||||
to see full list.</p>
|
||||
</div>
|
||||
</div>,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ function initKubernetesClusters() {
|
||||
context.menuItems.push({
|
||||
title: "Delete",
|
||||
icon: "delete",
|
||||
onClick: () => onClusterDelete(entity.metadata.uid)
|
||||
onClick: () => onClusterDelete(entity.metadata.uid),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -39,121 +39,121 @@ export function initCommandRegistry() {
|
||||
id: "app.showPreferences",
|
||||
title: "Preferences: Open",
|
||||
scope: "global",
|
||||
action: () => navigate(routes.preferencesURL())
|
||||
action: () => navigate(routes.preferencesURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewHelmCharts",
|
||||
title: "Cluster: View Helm Charts",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.helmChartsURL())
|
||||
action: () => navigate(routes.helmChartsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewHelmReleases",
|
||||
title: "Cluster: View Helm Releases",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.releaseURL())
|
||||
action: () => navigate(routes.releaseURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewConfigMaps",
|
||||
title: "Cluster: View ConfigMaps",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.configMapsURL())
|
||||
action: () => navigate(routes.configMapsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewSecrets",
|
||||
title: "Cluster: View Secrets",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.secretsURL())
|
||||
action: () => navigate(routes.secretsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewResourceQuotas",
|
||||
title: "Cluster: View ResourceQuotas",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.resourceQuotaURL())
|
||||
action: () => navigate(routes.resourceQuotaURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewLimitRanges",
|
||||
title: "Cluster: View LimitRanges",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.limitRangeURL())
|
||||
action: () => navigate(routes.limitRangeURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewHorizontalPodAutoscalers",
|
||||
title: "Cluster: View HorizontalPodAutoscalers (HPA)",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.hpaURL())
|
||||
action: () => navigate(routes.hpaURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewPodDisruptionBudget",
|
||||
title: "Cluster: View PodDisruptionBudgets",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.pdbURL())
|
||||
action: () => navigate(routes.pdbURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewServices",
|
||||
title: "Cluster: View Services",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.servicesURL())
|
||||
action: () => navigate(routes.servicesURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewEndpoints",
|
||||
title: "Cluster: View Endpoints",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.endpointURL())
|
||||
action: () => navigate(routes.endpointURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewIngresses",
|
||||
title: "Cluster: View Ingresses",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.ingressURL())
|
||||
action: () => navigate(routes.ingressURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewNetworkPolicies",
|
||||
title: "Cluster: View NetworkPolicies",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.networkPoliciesURL())
|
||||
action: () => navigate(routes.networkPoliciesURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewNodes",
|
||||
title: "Cluster: View Nodes",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.nodesURL())
|
||||
action: () => navigate(routes.nodesURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewPods",
|
||||
title: "Cluster: View Pods",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.podsURL())
|
||||
action: () => navigate(routes.podsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewDeployments",
|
||||
title: "Cluster: View Deployments",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.deploymentsURL())
|
||||
action: () => navigate(routes.deploymentsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewDaemonSets",
|
||||
title: "Cluster: View DaemonSets",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.daemonSetsURL())
|
||||
action: () => navigate(routes.daemonSetsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewStatefulSets",
|
||||
title: "Cluster: View StatefulSets",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.statefulSetsURL())
|
||||
action: () => navigate(routes.statefulSetsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewJobs",
|
||||
title: "Cluster: View Jobs",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.jobsURL())
|
||||
action: () => navigate(routes.jobsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewCronJobs",
|
||||
title: "Cluster: View CronJobs",
|
||||
scope: "entity",
|
||||
action: () => navigate(routes.cronJobsURL())
|
||||
action: () => navigate(routes.cronJobsURL()),
|
||||
},
|
||||
{
|
||||
id: "cluster.viewCurrentClusterSettings",
|
||||
@@ -162,46 +162,46 @@ export function initCommandRegistry() {
|
||||
action: () => navigate(routes.entitySettingsURL({
|
||||
params: {
|
||||
entityId: getActiveClusterEntity()?.id,
|
||||
}
|
||||
},
|
||||
})),
|
||||
isActive: (context) => !!context.entity
|
||||
isActive: (context) => !!context.entity,
|
||||
},
|
||||
{
|
||||
id: "cluster.openTerminal",
|
||||
title: "Cluster: Open terminal",
|
||||
scope: "entity",
|
||||
action: () => createTerminalTab(),
|
||||
isActive: (context) => !!context.entity
|
||||
isActive: (context) => !!context.entity,
|
||||
},
|
||||
{
|
||||
id: "hotbar.switchHotbar",
|
||||
title: "Hotbar: Switch ...",
|
||||
scope: "global",
|
||||
action: () => CommandOverlay.open(<HotbarSwitchCommand />)
|
||||
action: () => CommandOverlay.open(<HotbarSwitchCommand />),
|
||||
},
|
||||
{
|
||||
id: "hotbar.addHotbar",
|
||||
title: "Hotbar: Add Hotbar ...",
|
||||
scope: "global",
|
||||
action: () => CommandOverlay.open(<HotbarAddCommand />)
|
||||
action: () => CommandOverlay.open(<HotbarAddCommand />),
|
||||
},
|
||||
{
|
||||
id: "hotbar.removeHotbar",
|
||||
title: "Hotbar: Remove Hotbar ...",
|
||||
scope: "global",
|
||||
action: () => CommandOverlay.open(<HotbarRemoveCommand />)
|
||||
action: () => CommandOverlay.open(<HotbarRemoveCommand />),
|
||||
},
|
||||
{
|
||||
id: "hotbar.renameHotbar",
|
||||
title: "Hotbar: Rename Hotbar ...",
|
||||
scope: "global",
|
||||
action: () => CommandOverlay.open(<HotbarRenameCommand />)
|
||||
action: () => CommandOverlay.open(<HotbarRenameCommand />),
|
||||
},
|
||||
{
|
||||
id: "catalog.searchEntities",
|
||||
title: "Catalog: Activate Entity ...",
|
||||
scope: "global",
|
||||
action: () => CommandOverlay.open(<ActivateEntityCommand />)
|
||||
action: () => CommandOverlay.open(<ActivateEntityCommand />),
|
||||
},
|
||||
]);
|
||||
}
|
||||
@@ -33,7 +33,7 @@ export function initEntitySettingsRegistry() {
|
||||
group: "Settings",
|
||||
components: {
|
||||
View: clusterSettings.GeneralSettings,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
apiVersions: ["entity.k8slens.dev/v1alpha1"],
|
||||
@@ -42,7 +42,7 @@ export function initEntitySettingsRegistry() {
|
||||
group: "Settings",
|
||||
components: {
|
||||
View: clusterSettings.ProxySettings,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
apiVersions: ["entity.k8slens.dev/v1alpha1"],
|
||||
@@ -51,7 +51,7 @@ export function initEntitySettingsRegistry() {
|
||||
group: "Settings",
|
||||
components: {
|
||||
View: clusterSettings.TerminalSettings,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
apiVersions: ["entity.k8slens.dev/v1alpha1"],
|
||||
@@ -60,7 +60,7 @@ export function initEntitySettingsRegistry() {
|
||||
group: "Settings",
|
||||
components: {
|
||||
View: clusterSettings.NamespacesSettings,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
apiVersions: ["entity.k8slens.dev/v1alpha1"],
|
||||
@@ -69,7 +69,7 @@ export function initEntitySettingsRegistry() {
|
||||
group: "Settings",
|
||||
components: {
|
||||
View: clusterSettings.MetricsSettings,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
apiVersions: ["entity.k8slens.dev/v1alpha1"],
|
||||
@@ -78,7 +78,7 @@ export function initEntitySettingsRegistry() {
|
||||
group: "Settings",
|
||||
components: {
|
||||
View: clusterSettings.NodeShellSettings,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ export function intiKubeObjectDetailRegistry() {
|
||||
components: {
|
||||
// Note: this line is left in the long form as a validation that this usecase is valid
|
||||
Details: (props: HpaDetailsProps) => <HpaDetails {...props}/>,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "HorizontalPodAutoscaler",
|
||||
@@ -79,14 +79,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: LimitRangeDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ConfigMap",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: ConfigMapDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ConfigMap",
|
||||
@@ -94,56 +94,56 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "PodDisruptionBudget",
|
||||
apiVersions: ["policy/v1beta1"],
|
||||
components: {
|
||||
Details: PodDisruptionBudgetDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ResourceQuota",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: ResourceQuotaDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Secret",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: SecretDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "CustomResourceDefinition",
|
||||
apiVersions: ["apiextensions.k8s.io/v1", "apiextensions.k8s.io/v1beta1"],
|
||||
components: {
|
||||
Details: CRDDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Event",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: EventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Namespace",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: NamespaceDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Endpoints",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: EndpointDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Endpoints",
|
||||
@@ -151,14 +151,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Ingress",
|
||||
apiVersions: ["networking.k8s.io/v1", "extensions/v1beta1"],
|
||||
components: {
|
||||
Details: IngressDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Ingress",
|
||||
@@ -166,14 +166,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "NetworkPolicy",
|
||||
apiVersions: ["networking.k8s.io/v1"],
|
||||
components: {
|
||||
Details: NetworkPolicyDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "NetworkPolicy",
|
||||
@@ -181,14 +181,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Service",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: ServiceDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Service",
|
||||
@@ -196,14 +196,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Node",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: NodeDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Node",
|
||||
@@ -211,21 +211,21 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "PodSecurityPolicy",
|
||||
apiVersions: ["policy/v1beta1"],
|
||||
components: {
|
||||
Details: PodSecurityPolicyDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "StorageClass",
|
||||
apiVersions: ["storage.k8s.io/v1"],
|
||||
components: {
|
||||
Details: StorageClassDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "StorageClass",
|
||||
@@ -233,14 +233,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "PersistentVolumeClaim",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: PersistentVolumeClaimDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "PersistentVolumeClaim",
|
||||
@@ -248,14 +248,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "PersistentVolume",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: PersistentVolumeDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "PersistentVolume",
|
||||
@@ -263,14 +263,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Role",
|
||||
apiVersions: ["rbac.authorization.k8s.io/v1"],
|
||||
components: {
|
||||
Details: RoleDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Role",
|
||||
@@ -278,14 +278,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ClusterRole",
|
||||
apiVersions: ["rbac.authorization.k8s.io/v1"],
|
||||
components: {
|
||||
Details: ClusterRoleDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ClusterRole",
|
||||
@@ -293,14 +293,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "RoleBinding",
|
||||
apiVersions: ["rbac.authorization.k8s.io/v1"],
|
||||
components: {
|
||||
Details: RoleBindingDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "RoleBinding",
|
||||
@@ -308,14 +308,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ClusterRoleBinding",
|
||||
apiVersions: ["rbac.authorization.k8s.io/v1"],
|
||||
components: {
|
||||
Details: ClusterRoleBindingDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ClusterRoleBinding",
|
||||
@@ -323,14 +323,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ServiceAccount",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: ServiceAccountsDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ServiceAccount",
|
||||
@@ -338,14 +338,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "CronJob",
|
||||
apiVersions: ["batch/v1beta1"],
|
||||
components: {
|
||||
Details: CronJobDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "CronJob",
|
||||
@@ -353,14 +353,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "DaemonSet",
|
||||
apiVersions: ["apps/v1"],
|
||||
components: {
|
||||
Details: DaemonSetDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "DaemonSet",
|
||||
@@ -368,14 +368,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Deployment",
|
||||
apiVersions: ["apps/v1"],
|
||||
components: {
|
||||
Details: DeploymentDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Deployment",
|
||||
@@ -383,14 +383,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Job",
|
||||
apiVersions: ["batch/v1"],
|
||||
components: {
|
||||
Details: JobDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Job",
|
||||
@@ -398,14 +398,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Pod",
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
Details: PodDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Pod",
|
||||
@@ -413,14 +413,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ReplicaSet",
|
||||
apiVersions: ["apps/v1"],
|
||||
components: {
|
||||
Details: ReplicaSetDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ReplicaSet",
|
||||
@@ -428,14 +428,14 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "StatefulSet",
|
||||
apiVersions: ["apps/v1"],
|
||||
components: {
|
||||
Details: StatefulSetDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "StatefulSet",
|
||||
@@ -443,7 +443,7 @@ export function intiKubeObjectDetailRegistry() {
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: KubeEventDetails,
|
||||
}
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
@@ -34,35 +34,35 @@ export function initKubeObjectMenuRegistry() {
|
||||
apiVersions: ["v1"],
|
||||
components: {
|
||||
MenuItem: ServiceAccountMenu,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "CronJob",
|
||||
apiVersions: ["batch/v1beta1"],
|
||||
components: {
|
||||
MenuItem: CronJobMenu
|
||||
}
|
||||
MenuItem: CronJobMenu,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Deployment",
|
||||
apiVersions: ["apps/v1"],
|
||||
components: {
|
||||
MenuItem: DeploymentMenu
|
||||
}
|
||||
MenuItem: DeploymentMenu,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "ReplicaSet",
|
||||
apiVersions: ["apps/v1"],
|
||||
components: {
|
||||
MenuItem: ReplicaSetMenu
|
||||
}
|
||||
MenuItem: ReplicaSetMenu,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "StatefulSet",
|
||||
apiVersions: ["apps/v1"],
|
||||
components: {
|
||||
MenuItem: StatefulSetMenu
|
||||
}
|
||||
}
|
||||
MenuItem: StatefulSetMenu,
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
@@ -30,6 +30,6 @@ export function initWelcomeMenuRegistry() {
|
||||
title: "Browse Clusters in Catalog",
|
||||
icon: "view_list",
|
||||
click: () => navigate(catalogURL({ params: { group: "entity.k8slens.dev", kind: "KubernetesCluster" }} )),
|
||||
}
|
||||
},
|
||||
]);
|
||||
}
|
||||
@@ -31,15 +31,15 @@ export function initWorkloadsOverviewDetailRegistry() {
|
||||
{
|
||||
components: {
|
||||
Details: (props: any) => <OverviewStatuses {...props} />,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
priority: 5,
|
||||
components: {
|
||||
Details: () => (
|
||||
isAllowedResource("events") && <Events compact hideFilters className="box grow" />
|
||||
)
|
||||
}
|
||||
}
|
||||
),
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
Reference in new issue
Block a user