Skip to content

Commit

Permalink
Merge pull request #484 from weaveworks/rebase-0.25-edge
Browse files Browse the repository at this point in the history
Rebase 0.25 edge
  • Loading branch information
Kingdon Barrett authored Sep 15, 2023
2 parents 8f1bc87 + 03b83bd commit 68580ea
Show file tree
Hide file tree
Showing 22 changed files with 306 additions and 297 deletions.
198 changes: 152 additions & 46 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"publisher": "weaveworks",
"icon": "resources/icons/gitops-logo.png",
"engines": {
"vscode": "^1.63.0",
"vscode": "^1.82.0",
"npm": ">=7.0.0"
},
"categories": [
Expand Down Expand Up @@ -644,7 +644,7 @@
"dependencies": {
"@kubernetes/client-node": "^0.18.1",
"@types/ws": "^8.5.4",
"@vscode/extension-telemetry": "^0.4.7",
"@vscode/extension-telemetry": "^0.6.0",
"bufferutil": "^4.0.7",
"change-case": "^4.1.2",
"extract-zip": "^2.0.1",
Expand Down
6 changes: 3 additions & 3 deletions src/cli/kubernetes/apiResources.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { redrawhResourcesTreeViews, refreshResourcesTreeViews } from 'commands/refreshTreeViews';
import { redrawResourcesTreeViews, refreshResourcesTreeViews } from 'commands/refreshTreeViews';
import { currentContextData } from 'data/contextData';
import { setVSCodeContext, telemetry } from 'extension';
import { ContextId } from 'types/extensionIds';
Expand Down Expand Up @@ -52,7 +52,7 @@ export async function loadAvailableResourceKinds() {
context.apiResources = undefined;
context.apiState = ApiState.Loading;
// will set their content to Loading API...
redrawhResourcesTreeViews();
redrawResourcesTreeViews();

const kindsShellResult = await invokeKubectlCommand('api-resources --verbs=list -o wide');
if (kindsShellResult?.code !== 0) {
Expand All @@ -62,7 +62,7 @@ export async function loadAvailableResourceKinds() {
setVSCodeContext(ContextId.ClusterUnreachable, true);
clusterDataProvider.updateCurrentContextChildNodes();
refreshResourcesTreeViews();
redrawhResourcesTreeViews();
redrawResourcesTreeViews();
return;
}

Expand Down
4 changes: 3 additions & 1 deletion src/commands/kubectlApply.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import * as shell from 'cli/shell/exec';
import { Uri } from 'vscode';
import { Uri, window } from 'vscode';

export async function kubectlApplyPath(uri?: Uri) {
uri ??= window.activeTextEditor?.document.uri;
if(uri) {
return await shell.execWithOutput(`kubectl apply -f ${uri.fsPath}`);
}
}
export async function kubectlDeletePath(uri?: Uri) {
uri ??= window.activeTextEditor?.document.uri;
if(uri) {
return await shell.execWithOutput(`kubectl delete -f ${uri.fsPath}`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/refreshTreeViews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function refreshResourcesTreeViews() {
reloadTemplatesTreeView();
}

export function redrawhResourcesTreeViews() {
export function redrawResourcesTreeViews() {
sourceDataProvider.redraw();
workloadDataProvider.redraw();
templateDateProvider.redraw();
Expand Down
Loading

0 comments on commit 68580ea

Please sign in to comment.