Skip to content
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

LENSOSS-35 - Ability to import yaml files #7955

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
Pods
</div>
</div>

</div>
<main
class=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ export function jsonValidator(value: string) {
export const monacoValidators = {
yaml: yamlValidator,
json: jsonValidator,

};
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
6 changes: 5 additions & 1 deletion packages/kubectl-versions/build/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
],
[
"1.27",
"1.27.2"
"1.27.6"
],
[
"1.28",
"1.28.2"
]
]
Loading