Sebastian Malton
33de7cf7e9
Ensure that all mentioned items in extension API are exported
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-02 09:12:14 -05:00
Sebastian Malton
0b32775d40
Enforce some naming conventions ( #4813 )
2022-03-01 13:06:53 -05:00
Sebastian Malton
9c604dcfa1
Fix UnhandledPromiseRejectionWarning in KubeApi.watch ( #4919 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-22 13:34:49 -05:00
Sebastian Malton
600bd659f6
Enforce member-delimiter-style using eslint ( #4870 )
2022-02-16 14:43:03 -05:00
Sebastian Malton
76f48df56b
Fix rerendering of KubeObject views every 30s ( #4801 )
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2022-02-03 09:11:28 -05:00
Janne Savolainen
589472c2b5
Shorten license header to reduce amount of clutter in top of the files ( #4709 )
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-18 10:18:10 +02:00
Janne Savolainen
e1a6d4c4a9
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-app-paths
2022-01-10 17:13:20 +02:00
Sebastian Malton
fa3708c879
Add eslint:recommended lint rule ( #4577 )
2022-01-07 08:38:21 -05:00
Sebastian Malton
4f75acf2b4
Ban circular dependencies ( #3547 )
2022-01-05 11:35:44 -05:00
Janne Savolainen
9d33fff906
Cascade different refactorings to eliminate global shared state from app paths
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-05 13:26:49 +02:00
Sebastian Malton
304941d397
Fix IngressApi being registered with a wrong new apiBase ( #4485 )
2021-12-03 15:19:01 -05:00
Panu Horsmalahti
696986b7e6
Use PartialDeep for patch type ( #4420 )
...
* Use PartialDeep for patch type.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Add test. Fix typing.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Fix lint.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-12-02 15:28:28 +02:00
Sebastian Malton
4c16b7020d
Fix KubeApi.create not populating kind and apiVersion ( #4478 )
2021-12-01 15:57:08 -05:00
Sebastian Malton
29220c1c73
Fix getLatestApiPrefixGroup to not fail when options.apiBase is not provided ( #4462 )
2021-11-30 11:27:20 -05:00
Sebastian Malton
df46dd9ef6
Fix not being able to remove role bindings via the UI ( #4394 )
2021-11-30 09:06:54 -05:00
Panu Horsmalahti
0ca8448d33
Retry watch if timeout set, but request was not retried ( #4388 )
...
* Retry watch if timeout set, but request was not retried.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Cancel current request if retried.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Clarify retried variable/comment
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-11-24 15:56:01 +02:00
Jari Kolehmainen
ca15919218
Add timeout option to KubeApi.watch ( #4365 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-17 10:23:05 +02:00
Jari Kolehmainen
385de469ad
allow to call KubeApi.delete without namespace parameter ( #4349 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-16 09:14:41 +02:00
Jari Kolehmainen
882f216368
Use propagationPolicy=Background by default for delete ( #4337 )
2021-11-15 08:29:22 -05:00
Jari Kolehmainen
23d5d40d62
Implement KubeApi.patch ( #4325 )
...
* implement KubeApi.patch
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* keep it backward compatible
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-12 11:15:33 +02:00
Jari Kolehmainen
a86b306a48
add possibility to pass non-generic KubeApi to forRemoteCluster ( #4321 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-12 09:07:57 +02:00
Sebastian Malton
5eb1b8553d
Support window nodes for node-shells ( #3624 )
...
* Support window nodes for node-shells
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Also check beta.kubernetes/os label
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add comment about linux fallback
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-08 20:11:40 -05:00
Sebastian Malton
c6dce043a7
Lint: comma-spacing (error) & comma-dangle (error) ( #4200 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-02 17:38:20 -04:00
Panu Horsmalahti
0dab7b8073
Add option for providing request options to watch requests ( #4102 )
...
* Add option for providing request options to watch requests.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Move getRequestOptions to JsonApi.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Style fix
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Make token to be a string or a function
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Fix isFunction import.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Make getRequestOptions async.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Remove commented code.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Only set token if it's truthy.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Review fixes.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Add this.getRequestOptions default
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-10-21 19:18:32 +03:00
Jari Kolehmainen
3262b13926
Allow KubeApi connect directly to remote k8s ( #3766 )
...
* allow KubeApi to connect directly to remote k8s
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* backward compat
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* backward compat
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-09-13 10:14:05 +03:00
Jari Kolehmainen
016d012439
Fix KubeApi.watch leak on abort ( #3629 )
...
* fix KubeApi.watch leak on abort
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* make linter happy
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-18 11:50:03 +03:00
Jari Kolehmainen
443186d4f5
fix apiBase initialization on main ( #3595 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-12 10:34:45 +03:00
Jari Kolehmainen
58a446bd45
Refactor k8s api to common ( #3553 )
...
* refactor kube api to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* refactor more utils to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* refactor more utils to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* switch to use node-fetch on both sides
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* improve logger
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix lint errors
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix/improve tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix node-fetch require error on prod build
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* preload fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* read serverAddress from apiBase
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-10 13:26:14 +03:00