Move to .spec

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen committed 2021-10-04 08:50:39 +03:00
1 parent aed5760ba0
commit 22787a1376
6 files changed
+12 -11

No files matched your search

+3 -4
View File
@@ -75,12 +75,11 @@ export function syncWeblinks() {
uid: weblinkData.id,
name: weblinkData.name,
source: "local",
labels: {
triggerOnRunAfterOnClickDetailIcon: "true",
}
labels: {}
},
spec: {
url: weblinkData.url
url: weblinkData.url,
triggerOnRunAfterOnClickDetailIcon: true,
},
status: {
phase: "available",
+2 -2
View File
@@ -261,7 +261,6 @@ export function catalogEntityFromCluster(cluster: Cluster) {
name: cluster.name,
source: "local",
labels: {
triggerOnRunAfterOnClickDetailIcon: "true",
...cluster.labels,
},
distro: cluster.distribution,
@@ -270,7 +269,8 @@ export function catalogEntityFromCluster(cluster: Cluster) {
spec: {
kubeconfigPath: cluster.kubeConfigPath,
kubeconfigContext: cluster.contextName,
icon: {}
icon: {},
triggerOnRunAfterOnClickDetailIcon: true,
},
status: {
phase: cluster.disconnected ? "disconnected" : "connected",