vpa spec (WIP)
adding real vpa fields
scss files, and updates after rebase on master
scss update
tweaks to vpa api definition
putting more fields into the vpa list
adding vpa details, fixing vpa spec implementation (WIP)
vpa details page done
merge conflicts
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
* Fix shouldShowResource when not a cluster admin
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix only tests that rely on bad formatting of resources
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* added backbone for k8s-api/endpoints/ingress-class.api
Signed-off-by: Roman <ixrock@gmail.com>
* added ingress-class store, naming clean up
Signed-off-by: Roman <ixrock@gmail.com>
* navigate to ingress-classses injectable
Signed-off-by: Roman <ixrock@gmail.com>
* added new sidebar item: "Network -> Ingress Classes"
Signed-off-by: Roman <ixrock@gmail.com>
* added explicit returning type for `ingresses-sidebar-items.injectable`
Signed-off-by: Roman <ixrock@gmail.com>
* added initial ingress-class table-view + magic route-component.injectable
Signed-off-by: Roman <ixrock@gmail.com>
* fix: show loaded items from api into IngressClasses view
Signed-off-by: Roman <ixrock@gmail.com>
* fix: new bugs after master merging (with conflicts!), looks like breaking change if those apis where exported
Signed-off-by: Roman <ixrock@gmail.com>
* fix lint
Signed-off-by: Roman <ixrock@gmail.com>
* added icon-marker to see default ingress class in the list
Signed-off-by: Roman <ixrock@gmail.com>
* Page refresh is broken in development mode #6818 (upcoming fix)
Signed-off-by: Roman <ixrock@gmail.com>
* added "set as default" menu action for ingress classes
Signed-off-by: Roman <ixrock@gmail.com>
* fix: consistent sidebar items order by janne's request
Signed-off-by: Roman <ixrock@gmail.com>
* chore, fix lint
Signed-off-by: Roman <ixrock@gmail.com>
* fix: incorrect icons layout in ingress-class details
Signed-off-by: Roman <ixrock@gmail.com>
* some fixes, improved items search by values from `spec.parameters.*`
Signed-off-by: Roman <ixrock@gmail.com>
* fix: duplicating/overcaching items with each page visiting (Nnetwork -> Ingress classes)
Signed-off-by: Roman <ixrock@gmail.com>
* handling IngressClass drawer details
Signed-off-by: Roman <ixrock@gmail.com>
* fixes: remove duplicating / allow editing IngressClass items (due api's "namespaced=true")
Signed-off-by: Roman <ixrock@gmail.com>
* fix: incorrect `apiName` for `front-end-routing/cluster/network/ingress-class`
Signed-off-by: Roman <ixrock@gmail.com>
* fix: IngressClass proper metadata typing
Signed-off-by: Roman <ixrock@gmail.com>
* allow to mark as default IngressClass from menu item
Signed-off-by: Roman <ixrock@gmail.com>
* fix lint
Signed-off-by: Roman <ixrock@gmail.com>
* fixes & responding to comments
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
* Add check for incomplete SelfSubjectRulesReview to fix GKE
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Adding namespaced for KubeApiResource
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Refactoring of AuthorizationNamespaceReview
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Removing dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Refactoring ListApiResources
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Extract ClusterContext into deps for KubeObjectStore to fix circular import
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix remaining type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix crash in frame by consolidating setup into runnables
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix type errors and remove dead code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix core resources not showing up
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix namespaces not being shown
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Simplify ClusterContext to remove something only NamespaceStore needs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Make sure the public API doesn't change
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fixing namespace-select-filter tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix other tests requiring overrides
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix kludge in cluster-frame tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix remaining test failures
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix integration test due to incorrect casting
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix integration test and kube watches not working at all
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix secret details test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix non-ApplicationBuilder tests by adding overrides
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix crash due to trying to read hostedCluster too soon
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix crash due to timing issues
- Make injectable phases more explicit for renderer
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* feat: new view for PriorityClass under Config menu
Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
* Added priorityClassDetailItemInjectable
Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
* Removed uneccessary defensive code
Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
* Implement a lot of technical requirements for behavioural unit tests
Note: the crux of this was to make routing env-agnostic, and not based on URLs as magic strings, but instead something type-enforced.
Note: extension-based routes comply to same exact interface by "late-registering" their routes when installed. Routes are just injectables.
Note: another chunk of global shared state is no more.
Note: a lot of explicit side effects have been cornered to injectables.
Note: a lot of stuff has become reactive as part if this.
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make a directory commonly available
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Require id for <Select /> to prevent non-deterministic renders
This was caused by global state in a 3rd party lib: "react-select".
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Specify id for all <Select /> to satisfy previous commit
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Prevent explicit side effect in component by using existing dependency instead
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Extract instantiation of "conf" as injectables for causing side effects
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Introduce a legacy-helper to make gradual refactoring of inheritors of Singleton easier
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Make legacy unit tests for hotbar green and more simple by using the new legacy helper
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Temporarily kludge all unit tests green with a disclaimer about allowing side-effects
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Remove kludge in previous commit by explicitly permitting specific side effects where old unit tests require it
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Prevent old unit test with side effects from accessing file system
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Migrate to actual typing for di.permitSideEffects
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Prevent unit tests from failing because of non-standard method of HTML-element not present in js-dom
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Adapt integration tests to recent changes
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Fix code style
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Fix artifact from bad rebase
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Add a deprecation from a review comment
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Remove change that is not required
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove redundant comment
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix code style
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove redundant file
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix bad merge
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Improve variable name
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Tweak logger interface to be more descriptive
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make injecting legacy singleton always provide new instance
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove conditional typing when not needed
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Improve naming of variable
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove unnecessary code style changes
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove flag for causing side effects from too broad scope
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Override side-effects in unit test using injectable instead of monkey patching
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Flag some side-effects and add general overrides
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Fix unit tests in CI by removing explicit side-effect
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Remove explicit side-effect from getting default shell
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce abstraction for getting absolute paths
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using abstraction for getting absolute path to control explicit side effect
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Introduce abstraction for joining paths
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Switch to using abstraction for joining paths to control explicit side effect
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix fake implementation for join paths
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix test after removing explicit side effect
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove explicit side effects from kubeconfig-syncs
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix arguments after removing explicit side effect
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make registrators not async for not being needed anymore
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Make generalCatalogEntities non-observable, as there is no requirement
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Remove redundant code
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
* Simplify logic for registering general catalog entity sources
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Add TODO
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Replace function for getting application menu items with reactive solution
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Fix typo in interface name
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove global shared state usages of hot bar store
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
* Remove redundant enum
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>