Skip to content

Commit

Permalink
Edge rebase @ 0.25.1-edge.7 (#463)
Browse files Browse the repository at this point in the history
* Allow users to disable running `flux check`

When I tested it locally it looked like we're calling `flux check` a bit
more often than we should. This may have been fixed by now, but the flag
remains so users who are experiencing issues from `flux check` can
disable it entirely.

* allow users to additionally suppress debugging messages

Emits some debugging messages that are meant for the other authors of
the extension to notice (and users won't be as interested in how many
times we were apparently going to call flux check)

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

* Add a hard timeout for all processes we spawn (#460)

timeout kill all exec processes. default time is 10s

* aync cluster treeview

flux check with async cluster treeview

proper async sources treeview

correct expand all

* responsive ui with oidc-login WIP

* preserve collapsible states

safer execs

realtime namespace icons

* 60 seconds exec kill
* namespace UI better
* namespace ui improvements
* module tree-kill

* node 20

missing npm packages

npm audit fix

fully qualify types

my cluster has HelmReleases.cluster.loft.sh and it is wreaking all kinds
of havoc here, let's fix this in the prerelease/edge channel ASAP

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

simplify treeview states WIP

api-resources loader WIP

revert Kind.APIGroup

gitops.editor.openKubeconfig

api-resource loader and views

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

* docs and templates treeview loads

* update github actions workflows

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

* First try: fully qualified Flux API names

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

* More fully qualified kinds

* fix type error

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

* fix linting error

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

* remove debugger stuff

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

* fix expand all for workloads

* fqkinds record lookup

* add timeout configuration to after async

Signed-off-by: Kingdon Barrett <kingdon@weave.works>

* remove console.log and lint imports

* treeview semantics cleanup

* restore k8s proxy

* refactor data providers to not break on context switches

---------

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
Co-authored-by: Juozas Gaigalas <juozasgaigalas@gmail.com>
  • Loading branch information
Kingdon Barrett and juozasg authored Sep 8, 2023
1 parent f2cb1ba commit 289cd1e
Show file tree
Hide file tree
Showing 63 changed files with 979 additions and 622 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ jobs:
fi;
- name: Clone Repository
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # pin@v2
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
with:
fetch-depth: 0

- name: Setup Flux CLI
uses: fluxcd/flux2/action@44d69d6fc0c353e79c1bad021a4aca135033bce8 # pin@main
uses: fluxcd/flux2/action@1730f3c46bddf0a29787d8d4fa5ace283f298e49 # pin@main
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node version
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # pin@v1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # pin@v3
with:
node-version: 19

Expand All @@ -96,11 +96,11 @@ jobs:
- name: Setup Kubernetes
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # pin@v0.5.0
with:
version: v0.19.0
image: kindest/node:v1.27.3
version: v0.20.0
image: kindest/node:v1.28.0

- name: Run Tests
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # pin@v1
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # pin@v1
with:
run: npm test
options: "-screen 0 1600x1200x24"
Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
- name: GitHub Release
uses: ncipollo/release-action@a2e71bdd4e7dab70ca26a852f29600c98b33153e # pin@v1
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # pin@v1
with:
artifacts: "./gitops-tools-*"
bodyFile: ${{ github.workspace }}-CHANGELOG.txt
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # pin@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3

- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # pin@v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # pin@v3
with:
node-version: '19'
node-version: '20'

- run: npm install

- name: Setup Kubernetes
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # pin@v0.5.0
with:
version: v0.19.0
image: kindest/node:v1.27.3
version: v0.20.0
image: kindest/node:v1.28.0

- name: Setup Flux CLI
uses: fluxcd/flux2/action@44d69d6fc0c353e79c1bad021a4aca135033bce8 # pin@main
uses: fluxcd/flux2/action@1730f3c46bddf0a29787d8d4fa5ace283f298e49 # pin@main
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: extension test
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # pin@v1
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # pin@v1
with:
run: 'npm test'
options: "-screen 0 1600x1200x24"
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
"debug.node.autoAttach": "on"
"debug.node.autoAttach": "on",
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
},
}
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ We rely on the Kubernetes extension to discover and connect to clusters. If you

Confirm that your configuration context shows in a terminal running `kubectl config get-contexts`

### _Switching from an unreachable cluster context to a working cluster_





Unreachable or laggy clusters can create long running that cluster resource queries that finish after switching to a working cluster context. This can lead to the slow cluster data overwriting the current cluster treeview. **Clusters** -> **Refresh** button will reinitialize the views with current data. Timeout settings can be adjusted under **GitOps** section in VSCode Settings.

### _Timeouts and flux check warnings_

Expand Down
95 changes: 95 additions & 0 deletions package-lock.json

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

Loading

0 comments on commit 289cd1e

Please sign in to comment.