freelens-keda-extension 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +11 -10
  2. package/out/main/index.js +6 -2
  3. package/out/main/index.js.map +1 -1
  4. package/out/renderer/index.js +811 -26
  5. package/out/renderer/index.js.map +1 -1
  6. package/package.json +32 -35
  7. package/out/main/_virtual/_global-external_@freelensapp/extensions.js +0 -7
  8. package/out/renderer/_virtual/_global-external_@freelensapp/extensions.js +0 -8
  9. package/out/renderer/_virtual/_global-external_mobx-react.js +0 -57
  10. package/out/renderer/_virtual/_global-external_react/jsx-runtime.js +0 -9
  11. package/out/renderer/_virtual/_global-external_react.js +0 -31
  12. package/out/renderer/_virtual/_rolldown/runtime.js +0 -12
  13. package/out/renderer/api/scaledobject/scaledobject-v1.js +0 -150
  14. package/out/renderer/api/scaledobject/scaledobject-v1.js.map +0 -1
  15. package/out/renderer/components/available-version.js +0 -76
  16. package/out/renderer/components/available-version.js.map +0 -1
  17. package/out/renderer/components/available-version.module.js +0 -21
  18. package/out/renderer/components/available-version.module.js.map +0 -1
  19. package/out/renderer/components/available-version2.module.js +0 -5
  20. package/out/renderer/components/available-version2.module.js.map +0 -1
  21. package/out/renderer/components/error-boundary.js +0 -104
  22. package/out/renderer/components/error-boundary.js.map +0 -1
  23. package/out/renderer/components/error-page.js +0 -19
  24. package/out/renderer/components/error-page.js.map +0 -1
  25. package/out/renderer/components/error-page.module.js +0 -12
  26. package/out/renderer/components/error-page.module.js.map +0 -1
  27. package/out/renderer/components/error-page2.module.js +0 -5
  28. package/out/renderer/components/error-page2.module.js.map +0 -1
  29. package/out/renderer/details/scaled-object-details.js +0 -174
  30. package/out/renderer/details/scaled-object-details.js.map +0 -1
  31. package/out/renderer/details/scaled-object-details.module.js +0 -24
  32. package/out/renderer/details/scaled-object-details.module.js.map +0 -1
  33. package/out/renderer/details/scaled-object-details2.module.js +0 -5
  34. package/out/renderer/details/scaled-object-details2.module.js.map +0 -1
  35. package/out/renderer/icons/index.js +0 -2
  36. package/out/renderer/icons/keda.js +0 -5
  37. package/out/renderer/icons/keda.js.map +0 -1
  38. package/out/renderer/icons/keda2.js +0 -18
  39. package/out/renderer/icons/keda2.js.map +0 -1
  40. package/out/renderer/menus/scaled-object-pause-menu-item.js +0 -34
  41. package/out/renderer/menus/scaled-object-pause-menu-item.js.map +0 -1
  42. package/out/renderer/pages/scaled-objects-page.js +0 -109
  43. package/out/renderer/pages/scaled-objects-page.js.map +0 -1
  44. package/out/renderer/pages/scaled-objects-page.module.js +0 -36
  45. package/out/renderer/pages/scaled-objects-page.module.js.map +0 -1
  46. package/out/renderer/pages/scaled-objects-page2.module.js +0 -5
  47. package/out/renderer/pages/scaled-objects-page2.module.js.map +0 -1
package/README.md CHANGED
@@ -37,11 +37,15 @@ Each ScaledObject also gets a details panel in the drawer:
37
37
  - Conditions with their messages as tooltips, external metric names, original replica
38
38
  count, last active time and the pause state.
39
39
 
40
- **Pause / Resume Autoscaling**: the ScaledObject menu writes the
41
- `autoscaling.keda.sh/paused-replicas` annotation — the same as
42
- `kubectl annotate so <name> autoscaling.keda.sh/paused-replicas=0 --overwrite`. Pausing
43
- scales the target down to the given replicas and freezes it there; resuming removes the
44
- annotation (a `null` in the merge patch) so the controller scales normally again.
40
+ **Pause / Scale to Zero / Resume Autoscaling**: the ScaledObject menu writes the pause
41
+ annotations the controller reads, the same as `kubectl annotate so <name> ...`:
42
+
43
+ - **Pause Autoscaling** sets `autoscaling.keda.sh/paused=true`, which freezes the target at
44
+ its current replica count (KEDA 2.12 or newer).
45
+ - **Scale to Zero** sets `autoscaling.keda.sh/paused-replicas=0`, which scales the target
46
+ down to zero replicas and keeps it there. It asks for confirmation first.
47
+ - **Resume Autoscaling** removes both annotations (a `null` in the merge patch) so the
48
+ controller scales normally again. It is the only item shown while the object is paused.
45
49
 
46
50
  ## Requirements
47
51
 
@@ -74,7 +78,8 @@ To install from a local checkout instead (for development), see
74
78
  `example-app-cpu`; each details panel shows its triggers, and the "Scaling Events"
75
79
  section fills in as the controller reconciles.
76
80
 
77
- 3. Open the menu of a ScaledObject and click **Pause Autoscaling**; the Status column
81
+ 3. Open the menu of a ScaledObject and click **Pause Autoscaling** (keeps the current
82
+ replicas) or **Scale to Zero** (confirms, then scales to zero); the Status column
78
83
  switches to `Paused` once the controller applies the annotation, and
79
84
  **Resume Autoscaling** restores normal scaling.
80
85
 
@@ -120,10 +125,6 @@ upstream template:
120
125
  `sass-embedded` (which spawns the Dart Sass binary), and in-process TypeScript
121
126
  transpilation of the electron-vite config instead of the esbuild service (which spawns
122
127
  a binary). Run it from this directory: `node ..\.tools\patch-vite.mjs`.
123
- - The electron-vite config therefore does not use `@vitejs/plugin-react` (the config's
124
- CommonJS loader cannot `require()` the plugin's ESM graph with top-level `await`); JSX uses
125
- Vite's native automatic transform (`react/jsx-runtime` mapped to the host global). The
126
- plugin stays as a devDependency to mirror the fluxcd extension, and knip ignores it.
127
128
  - `test:unit` uses `--pool=threads` and `knip:check` uses `&&` instead of the parallel
128
129
  regex script, both because of the same spawn restriction.
129
130
  - `biome:*` and `knip:*` download via `pnpm dlx`, whose default cache lives in
package/out/main/index.js CHANGED
@@ -2,9 +2,13 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_extensions = require("./_virtual/_global-external_@freelensapp/extensions.js");
5
+ // \0global-external:@freelensapp/extensions
6
+ var __m = global.LensExtensions;
7
+ __m.Common;
8
+ var Main = __m.Main;
9
+ __m.Renderer;
6
10
  // src/main/index.ts
7
- var KedaMain = class extends require_extensions.Main.LensExtension {};
11
+ var KedaMain = class extends Main.LensExtension {};
8
12
  exports.default = KedaMain;
9
13
 
10
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Main"],"sources":["../../src/main/index.ts"],"sourcesContent":["import { Main } from \"@freelensapp/extensions\";\n\nexport default class KedaMain extends Main.LensExtension {}\n"],"mappings":";;;;;;AAEA,IAAqB,WAArB,cAAsCA,mBAAAA,KAAK,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/main/index.ts"],"sourcesContent":["import { Main } from \"@freelensapp/extensions\";\n\nexport default class KedaMain extends Main.LensExtension {}\n"],"mappings":";;;;;;;;;;AAEA,IAAqB,WAArB,cAAsC,KAAK,cAAc,CAAC"}