feat: LENSOSS-35 - Ability to import yaml files

Signed-off-by: gitstart <bot@gitstart.com>
This commit is contained in:
gitstart committed 2023-10-11 09:22:47 +00:00
1 parent f1a960fd78
commit b968a6c59a
7 files changed
+21 -3

No files matched your search

@@ -290,6 +290,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
Pods
</div>
</div>
</div>
<main
class=""
@@ -11,6 +11,7 @@ import openPathPickingDialogInjectable from "../../../features/path-picking-dial
import addSyncEntriesInjectable from "../../initializers/add-sync-entries.injectable";
import { beforeFrameStartsSecondInjectionToken } from "../tokens";
const setupKubernetesClusterCatalogAddMenuListenerInjectable = getInjectable({
id: "setup-kubernetes-cluster-catalog-add-menu-listener",
instantiate: (di) => ({
@@ -51,9 +52,14 @@ const setupKubernetesClusterCatalogAddMenuListenerInjectable = getInjectable({
message: "Sync file(s)",
buttonLabel: "Sync",
properties: ["showHiddenFiles", "multiSelections", "openFile"],
filters: [
{ name: 'Kubeconfig and YAML Files', extensions: ['conf', 'yaml', 'yml'] },
{ name: 'All Files', extensions: ['*'] }
],
onPick: addSyncEntries,
}),
},
);
} else {
ctx.menuItems.push(
@@ -27,4 +27,5 @@ export function jsonValidator(value: string) {
export const monacoValidators = {
yaml: yamlValidator,
json: jsonValidator,
};
@@ -37,6 +37,9 @@
&.namespace {
flex-grow: 1.2;
//Auto Width: Allow the dropdown to expand horizontally to accommodate the text.
white-space: nowrap;
min-width: min-content;
}
&.cpu {
@@ -9,7 +9,9 @@ import { runInAction } from "mobx";
import { showSuccessNotificationInjectable } from "@k8slens/notifications";
import userPreferencesStateInjectable from "../../features/user-preferences/common/state.injectable";
const addSyncEntriesInjectable = getInjectable({
const
addSyncEntriesInjectable = getInjectable({
id: "add-sync-entries",
instantiate: (di) => {
@@ -109,6 +109,10 @@
],
[
"1.27",
"1.27.2"
"1.27.6"
],
[
"1.28",
"1.28.2"
]
]