Commit Graph

44 Commits

Author SHA1 Message Date
Seba 0b729da922 add the pod delete feature to the kubernetes react plugin (#24534)
* add the pod delete feature to the kubernetes react plugin

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* move podDelete into PodDrawer

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* remove dialog and use only a button

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* move config inside frontend object

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* update the k8 configration.md documentation

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* add error ui if error

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* refactor restart text logic

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* fix test var name

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* fix doc key

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* revert last commit

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* add i18n

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* Update plugins/kubernetes-react/src/translation.ts

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Seba <17096352+sebalaini@users.noreply.github.com>

* remove buttonText config

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* add alpha and doc

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* add alpha api report

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

---------

Signed-off-by: sebalaini <sebastianolaini@gmail.com>
Signed-off-by: Seba <17096352+sebalaini@users.noreply.github.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-11-05 15:04:48 -05:00
Corey Daley 71b87043ef Bump @kubernetes/client-node to ^1.0.0-rc7
Signed-off-by: Corey Daley <cdaley@redhat.com>
2024-10-28 08:44:22 -04:00
Fredrik Adelöw 3afafea87b implement discovery too
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-10-11 09:49:37 +02:00
Deepankumar 954a5939db Liveness probe added in ContainerCard component (#25958)
* Liveness probe added in ContainerCard component

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

* liveness probe shows only if available

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

* changed return object from variable

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>

---------

Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>
2024-08-15 09:10:48 +01:00
Camila Belo b82aff92aa refactor(test-utils): deprecate the isDockerDisabledForTests function
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 17:06:00 +02:00
Camila Belo 95a3a0b91c refactor(test-utils): rename setupRequestMockHandlers to setupMswHandler
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 15:45:49 +02:00
Seba 2414d86668 Kubernetes react -> Warning: validateDOMNesting(...): <ul> cannot appear as a descendant of <p> (#25559)
* fix html markup in FixDialog

Signed-off-by: sebalaini <sebastianolaini@gmail.com>

* Update .changeset/short-impalas-suffer.md

Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Seba <17096352+sebalaini@users.noreply.github.com>

---------

Signed-off-by: sebalaini <sebastianolaini@gmail.com>
Signed-off-by: Seba <17096352+sebalaini@users.noreply.github.com>
Co-authored-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 08:28:50 -04:00
Ilias Van Peer e3cb6abeec Add namespace label to argo rollouts in kubernetes (#25467)
* Create fixture for rollouts

Since rollouts have customized support, having a fixture for them can
help in maintaining their rendering.

Signed-off-by: ilias <mail@ilias.xyz>

* Show namespace on Argo Rollout drawers

Signed-off-by: ilias <mail@ilias.xyz>

* Add changeset

Signed-off-by: ilias <mail@ilias.xyz>

* Check namespace shows up on rollouts

Signed-off-by: ilias <mail@ilias.xyz>

---------

Signed-off-by: ilias <mail@ilias.xyz>
2024-07-02 10:47:10 -04:00
Patrik Oldsberg b3906b2347 Merge pull request #24878 from alexef/more-fetch
fix: use fetchApi instead of explicit identityApi token in remaining plugins
2024-05-28 15:02:35 +02:00
Alex Eftimie 206ce36aa2 Use fetch
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
2024-05-23 10:39:51 +02:00
Matthew Clarke 0177f75892 fix: move kubernetes autoscaling to v2
Signed-off-by: Matthew Clarke <mclarke@spotify.com>
2024-05-17 16:17:37 -04:00
Seba 3102a99f48 add the namespace label to CronJobDrawer & IngressDrawer (#24485)
Signed-off-by: sebalaini <sebastianolaini@gmail.com>
2024-04-26 14:28:17 -04:00
Timothy Deakin 58800ba44c feat: add eslint rule for top level imports
Signed-off-by: Timothy Deakin <cftad@protonmail.com>
2024-04-13 18:01:36 +01:00
Deepankumar e6d474f1bb Fixed ResourceUtilization component for POD Memory Limits (#23982)
Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>
2024-04-04 11:36:41 -04:00
Tomasz Szuba e8f026a300 Use esm exports from react-use library
Signed-off-by: Tomasz Szuba <tszuba@box.com>
2024-03-19 19:53:04 +00:00
rui ma ff7e12632d feat: support i18n for core component
Signed-off-by: rui ma <ruima@alauda.io>
2024-02-27 21:03:28 +08:00
Andres Mauricio Gomez P 4642cb7ac2 Added support to fetch data for Daemon Sets and display an accordion in the same way as with Deployments
Signed-off-by: Andres Mauricio Gomez P <andmagom@outlook.com>
2024-02-16 13:28:32 -05:00
Jamie Klassen 5bf0c17bae pod dialogs display cluster title
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
2024-02-08 09:51:39 -05:00
Jamie Klassen 2bae1be978 ClusterAttributes prop for PodExecTerminal
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
2024-02-08 09:51:39 -05:00
Jamie Klassen a8e98aa981 refactor PodScope to include ClusterAttributes
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
2024-02-08 09:51:39 -05:00
Jamie Klassen b01c86c2b5 surface cluster title in ErrorReporting table
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
2024-02-08 09:51:39 -05:00
Jamie Klassen 74770c81ec ErrorPanel surfaces cluster title
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
2024-02-08 09:51:38 -05:00
Jamie Klassen 0dfc185829 pass ClusterAttributes to pod components
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
2024-02-08 09:51:38 -05:00
Jamie Klassen 2b305eb7f2 Display title in Cluster accordion
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
2024-02-08 09:51:38 -05:00
Jamie Klassen 3c184afa91 refactor: extract common dialog component
Signed-off-by: Jamie Klassen <jamie.klassen@broadcom.com>
2024-01-26 19:09:50 -05:00
Jamie Klassen d0ad09ff7e Merge pull request #22093 from luchillo17/fix/BCKSTG-366-pod-exec-terminal-missing-bac
fix: Revert broken xterm css import
2024-01-18 08:33:40 -05:00
Carlos Esteban Lopez 536f67dd3d fix: Revert broken xterm css import
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2024-01-17 20:16:48 -05:00
Carlos Esteban Lopez Jaramillo d98604b667 Apply suggestions from code review
Co-authored-by: Jamie Klassen <jamie.klassen@broadcom.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
2024-01-17 20:15:14 -05:00
Carlos Esteban Lopez 0d526c8554 feat: Make PodExecTerminal UI OptIn
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2024-01-17 20:15:14 -05:00
Jamie Klassen db1054bb92 fix invocation of kubernetesAuthProvidersApi
Pass token provider when authenticating via openID tokens.

Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2024-01-04 09:35:43 -05:00
Fredrik Adelöw 6c1ddfd683 ensure that luxon based tests are not os locale dependent
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-01-02 19:54:39 +01:00
Tomasz Szuba d5d2c67ca8 Add authuser param to GKE cluster link formatter in k8s plugin
Signed-off-by: Tomasz Szuba <tszuba@box.com>
2023-12-27 10:25:06 +01:00
Tomasz Szuba 899d71a37c [k8s] async formatClusterLink (#21535)
This is a refactor PR for formatClusterLink.
It rewrites it to be an API and allows async creation of cluster link.

Signed-off-by: Tomasz Szuba <tszuba@box.com>
2023-11-30 14:37:14 -05:00
Simon Stamm b5ae2e5a62 Fix closing of k8s pod drawer when data reloads (#21415)
* Add ID property to the table displaying kubernetes pods to avoid closing the info sidebar when the data reloads and needs to rerender.

Signed-off-by: Simon Stamm <simon.stamm@tui.com>

* Correct formatting

Signed-off-by: Simon Stamm <simon.stamm@tui.com>

* Change sideboard to drawer

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Simon Stamm <simon@stammtec.de>

---------

Signed-off-by: Simon Stamm <simon.stamm@tui.com>
Signed-off-by: Simon Stamm <simon@stammtec.de>
Co-authored-by: Jamie Klassen <jklassen@vmware.com>
2023-11-20 13:11:46 -05:00
Jamie Klassen 0ad4cca07d Merge pull request #20736 from ivangonzalezacuna/kubernetes/exported-types
(kubernetes-react): Make sure types are exported
2023-10-31 10:30:43 -04:00
Fredrik Adelöw 0f4cad6da0 fix test
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-10-25 21:20:25 +02:00
ivgo b52f576f48 Make sure types are exported
Signed-off-by: ivgo <ivgo@spreadgroup.com>
2023-10-23 14:23:07 +02:00
Patrik Oldsberg 0696ef1a34 replace usages of await act(async () => {}) with waitFor
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-18 09:37:04 +02:00
Patrik Oldsberg 0935b0d60f rtl 13 fixes for tests with type issues
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-18 09:37:03 +02:00
Patrik Oldsberg d60fbcb553 remove usages of @testing-library/react-hooks
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-18 09:37:03 +02:00
Tomasz Szuba 4262e12921 Handle decimals in k8s resource usage calculation (#20514)
When one of the numerator/denominator is a number and other is bigint this was failing.
decimals cannot be converted to bigints

Signed-off-by: Tomasz Szuba <tszuba@box.com>
2023-10-11 16:11:33 +02:00
Matthew Clarke 95518765ee feat: Kubernetes cluster plugin (#18760)
* refactor: k8s plugins

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* feat: add kubernetes cluster plugin

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* fix: yarn fix

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* fix: tsc

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* fix: types

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* chore: missing changeset

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* chore: update api report

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
2023-10-04 19:31:30 +00:00
Andres Mauricio Gomez P 5dac12e435 Backstage-Kubernetes-Authorization-X-X headers are provided when it gets invoke kubernetes endpoints on backstage
Signed-off-by: Andres Mauricio Gomez P <andmagom@outlook.com>
2023-10-03 10:29:22 -05:00
Matthew Clarke 2d8151061c refactor: Refactors the Kubernetes plugin in line with ADR11 (#19446)
* refactor: k8s plugins

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* chore: move more files

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* chore: fix

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* fix: tsc

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* chore: changeset

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* chore: api report

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* fix: catalog

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* fix: types

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

* fix: update lock

Signed-off-by: Matthew Clarke <mclarke@spotify.com>

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
2023-09-27 00:40:10 +02:00