Commit Graph

206 Commits

Author SHA1 Message Date
Aditya Kumar 0e1941b8f8 Added Material UI 4 import rule to plugins/kubernetes
Signed-off-by: Aditya Kumar <aditya.kumar60@infosys.com>
2024-03-14 08:21:03 +05:30
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
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
blam 1c8b7a4b17 chore: change usage of the component
Signed-off-by: blam <ben@blam.sh>
2023-10-26 22:26:30 +02: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
Jamie Klassen 29416c281d Merge pull request #19903 from jamieklassen/clusterdetails-relax-auth-type
Configurable Kubernetes Authentication Strategies
2023-09-15 13:01:08 -04:00
Fredrik Adelöw df1bb6c5b4 Merge pull request #19954 from backstage/freben/render
🧹  use `renderInTestApp`
2023-09-15 10:18:15 +02:00
Jamie Klassen 5d377c9b39 integrators can add strategies
Due to the loosened wire format, now integrators have the opportunity to define
arbitrary contracts between the front- and back-end when dealing with customized
Kubernetes auth setups.

Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2023-09-14 17:54:30 -04:00
Fredrik Adelöw ab6474579f use renderInTestApp
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-09-14 22:14:14 +02:00
Patrik Oldsberg 6ddeade58b kubernetes: more lazy use of TextEncoder
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-14 19:11:25 +02:00
Fredrik Adelöw a91c364097 fix flaky test
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-09-07 13:19:01 +02:00
Carlos Esteban Lopez 8127cc5fa4 fix: Finish rename refactors suggested in PR
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2023-09-06 07:26:53 -05:00
Carlos Esteban Lopez Jaramillo eb9fdf1187 Update plugins/kubernetes/src/components/PodExecTerminal/PodExecTerminalDialog.tsx
Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
2023-09-06 07:26:53 -05:00
Carlos Esteban Lopez Jaramillo ea09246e40 Update plugins/kubernetes/src/hooks/useIsPodExecTerminalSupported.ts
Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
2023-09-06 07:26:53 -05:00
Carlos Esteban Lopez Jaramillo d421fea9c9 Update plugins/kubernetes/src/components/PodExecTerminal/PodExecTerminal.tsx
Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
2023-09-06 07:26:53 -05:00
Carlos Esteban Lopez Jaramillo b5e3733987 Update plugins/kubernetes/src/components/PodExecTerminal/PodExecTerminal.test.tsx
Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
2023-09-06 07:26:53 -05:00
Carlos Esteban Lopez 7032c214f3 feat: Add a Web Shell terminal to Pod's Container Cards
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

Update .changeset/forty-rocks-jog.md

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
fix: Address PR comments

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

fix: Use sh instead of bash

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

fix: Move K8sTerminal into a dialog

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

fix: Use discoveryApi instead of configApi

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

fix: Update api-report.md

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

fix: Revert PodDrawer.tsx

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

test: Polyfill TextEncoder

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

feat: Refactor K8sTerminal inputs to receive only what it needs

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

test: Add tests

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

Update plugins/kubernetes/src/components/K8sTerminal/K8sTerminal.test.tsx

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
test: Fix tests for K8sTerminal

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

test: Fix isolated modules error

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

fix: Update api reports

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

Update plugins/kubernetes/src/components/K8sTerminal/K8sTerminalDialog.tsx

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
Update plugins/kubernetes/src/components/K8sTerminal/K8sTerminal.test.tsx

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
fix: Check for cluster size 1 & small refactors

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

chore: Update changeset

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

fix: Check client side auth providers to disable web shell

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

fix: Move K8sAPI logic to custom hook with mock

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

test: Fix hook mock warning & add internal tag for mock

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

Update plugins/kubernetes/src/components/K8sTerminal/K8sTerminal.test.tsx

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
Update .changeset/forty-rocks-jog.md

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
Update plugins/kubernetes/src/components/K8sTerminal/K8sTerminal.test.tsx

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Carlos Esteban Lopez Jaramillo <luchillo17@gmail.com>
refactor: Rename stuff as requested in PR

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

chore: Update API Reports

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>

test: Fix mocked hook that was renamed

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2023-09-06 07:26:53 -05:00
Fredrik Adelöw 814feeed73 fixes
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-09-04 09:47:28 +02:00
Matthew Clarke 6a5e04e20e Fix logs height (#19604)
* fix: fix pod log height

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

* chore: changeset

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

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
2023-08-25 10:57:14 -04:00
Adam Harvey 4b6d41737a fix(kubernetes): Typos in exported attributes (#19276)
* chore: Fix minor test description typo

Signed-off-by: Adam Harvey <aharvey00@gmail.com>

* fix(kubernetes): Typo attributes

Signed-off-by: Adam Harvey <aharvey00@gmail.com>

* fix(kubernetes): Fix typo in error detection attribute

Signed-off-by: Adam Harvey <aharvey00@gmail.com>

* fix(kubernetes): Update report with fixed attribute typos

Signed-off-by: Adam Harvey <aharvey00@gmail.com>

* chore(kubernetes): Add changeset

Signed-off-by: Adam Harvey <aharvey00@gmail.com>

---------

Signed-off-by: Adam Harvey <aharvey00@gmail.com>
2023-08-13 14:28:41 +02:00
Anatoly Kudriashov 562e34d269 Fix container memory limits
Signed-off-by: Anatoly Kudriashov <kav2k13@gmail.com>
2023-08-09 14:14:27 +02:00
Jamie Klassen c4a9eb45ab Merge pull request #18384 from avkudryashov/read-only
Decrease access level to read-only
2023-07-07 10:45:38 -04:00
Adam Harvey e2299a6ff5 chore: Make headings consistent without trailing colon
Signed-off-by: Adam Harvey <adaharve@cisco.com>
2023-07-01 10:26:44 -04:00
avkudryashov cc27fa4a1a Decrease access level to read-only
Signed-off-by: avkudryashov <41747012+avkudryashov@users.noreply.github.com>
Signed-off-by: Anatoly Kudriashov <kav2k13@gmail.com>
2023-06-26 12:56:12 +02:00
Fredrik Adelöw 98ed4fe065 Merge pull request #18234 from backstage/blam/jsdom-env
cli: Add `Request` `Response` `Headers` and `fetch` to `jsdom` environment
2023-06-20 10:40:26 +02:00
Matthew Clarke 4e697e88f0 feat: Add resource util pod drawer (#18169)
* feat: add resource utilization to pod drawer

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

* fix: lint

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

* chore: api report

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

* chore: api reports

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

* test: fix tests

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

* test: tests

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

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
2023-06-15 16:13:52 +02:00
blam 018553e29f chore: remove cross-fetch dep from plugins
Signed-off-by: blam <ben@blam.sh>
2023-06-13 16:25:53 +02:00
Matthew Clarke 73cc0deee4 feat: Proposed fix dialog (#17576)
* feat: add errors to Pod Drawer

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

* fix: lint fix

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

* test: useMatchingErrorTest

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

* feat: pod fix dialog for errors

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

* fix: link

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

* fix: icon tweak

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

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
2023-06-05 16:45:48 -04:00
blam b1e4a70b32 fix: bug with cyclical dependencies in the built output
Signed-off-by: blam <ben@blam.sh>
2023-05-23 16:00:37 +02:00
Matthew Clarke 4b230b9766 feat: add errors to Pod Drawer (#17563)
* feat: add errors to Pod Drawer

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

* fix: lint fix

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

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
2023-05-23 07:58:04 +02:00
Jamie Klassen c7bad1005b add aks access token to request body
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2023-05-08 10:04:58 -04:00
Matthew Clarke 280ec10c18 feat: add Kubernetes pod logs component (#17120)
* refactor: rename kubernetes structured metadata table

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

* feat: add pod logs components

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

* refactor: more generic proxy token generating

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

* tests

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

* chore: changeset

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

* fix: tsc fix

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

* docs: api report

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

* fix: remove event/errors mention

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

* feat: pending pod conditions

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

* fix: missed file

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

* fix: merge master

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

* fix: remove unneeded code

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

* feat: add proxy client

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

* docs: breaking change

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

* Update plugins/kubernetes/src/api/types.ts

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Matthew Clarke <matthewclarke47@gmail.com>

* Update plugins/kubernetes/src/api/types.ts

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Matthew Clarke <matthewclarke47@gmail.com>

* fix: PR feedback

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

* fix: test

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

* fix: PR feedback

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

* fix: PR feedback

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

* fix: todo

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

* fix: api reports

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

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
Signed-off-by: Matthew Clarke <matthewclarke47@gmail.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-04-28 16:34:33 +02:00
James Peach a160e02c3d Omit ManagedFields from the Kubernetes resource YAML display. (#17497)
* Omit ManagedFields from the Kubernetes resource YAML display.

The default for the Kubernetes CLI tooling is to omit the managed fields
by default, since these are only present for internal machinery. For
the Kubernetes resource YAML display, the managed fields take up a ton
of space, but are never useful to operators who are interested in the
details of their Kubernetes resources.

This fixes #14177.

Signed-off-by: James Peach <jpeach@apache.org>

* Add a control to toggle whether the managed fields display.

So that managed fields can be used for debugging purposes, add a switch
to toggle allow managed fields to display. This is off by default.

Signed-off-by: James Peach <jpeach@apache.org>

---------

Signed-off-by: James Peach <jpeach@apache.org>
2023-04-26 15:44:15 -04:00
Jamie Klassen e7fb011748 skip authorization header for server-side auth (#17306)
The backend is responsible for appending a bearer token in these cases.

Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2023-04-10 15:12:26 -04:00
Jamie Klassen 6941034dfb Merge pull request #17121 from RubenV-dev/kubernetes-proxy-client
Add reusable kubernetes-backend proxy client
2023-04-05 12:14:16 -04:00
Matthew Clarke 754be7c510 refactor: kubernetes error detection (#17135)
* feat: refactor kubenetes error detection to make way for proposed solutions

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

* docs: api-docs

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

* chore: changeset

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

* refactor: use luxon

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

---------

Signed-off-by: Matthew Clarke <mclarke@spotify.com>
2023-04-05 10:27:00 +02:00
Ruben Vallejo 6bea150df5 fix:addressing PR comments
Signed-off-by: Ruben Vallejo <rvallejo@vmware.com>
2023-04-04 12:23:08 -04:00
Ruben Vallejo faac72e5de add proxy method with tests for kubernetesbackendclient
Signed-off-by: Ruben Vallejo <rvallejo@vmware.com>
2023-04-04 10:12:35 -04:00
Ruben Vallejo 2e622932a4 Add proxy method to KubernetesBackendClient
Signed-off-by: Ruben Vallejo <rvallejo@vmware.com>
2023-04-04 10:12:35 -04:00
Jamie Klassen 8adeb19b37 GitLab is an oidcTokenProvider
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2023-02-28 12:48:46 -05:00
Fredrik Adelöw c10384a923 Get rid of usages of the old Button
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-02-22 14:29:31 +01:00
Patrik Oldsberg 4c08ac06fc fix remaining alpha exports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-02-21 14:43:21 +01:00
dmckernan c4f3a20dc2 Removes UI components when groupedResponse does not contain relevant items.
Fixes empty rows when table page contains fewer than requested page length.
Gives Pod Table rows a unique id.
Updates components for condensing the UI, and more visual distinction between Resource types
Updates all Accordion components to use the 'outlined' variant (except Cluster)
Updates all Drawer components to use 'body1' typography for the resource name and 'subtitle1' typography for the resource type, to be more condensed within the UI for instances whose base font size is larger.
Updates all Accordion targets to remove needless divider between resource info and resource detail summary.
Expands Accordion target grid items to utilize more space when grid content is likely to be long.
Removes spacing on grid in Accordion target to further reduce used space.

Signed-off-by: dmckernan <dmckernan@acvauctions.com>
2023-01-24 10:46:34 -05:00
Carlos Esteban Lopez 2bdd1f92c1 fix: Add paragraph prop for bottom margin
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2023-01-10 16:08:53 -05:00
Carlos Esteban Lopez e75f39e603 feat: Lint paragraphs except in test files & fix
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
2023-01-10 16:08:53 -05:00
Jamie Klassen bacb5470b6 frontend displays new error types
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Jamie Klassen 0ad476a720 gracefully surface FetchErrors
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
2022-12-14 17:51:19 -05:00
Patrik Oldsberg 27b07b3700 Merge pull request #14807 from Linneaiv/error_conditional_rendering
ErrorReporting conditional rendering
2022-12-12 18:04:26 +01:00
Linnéa Ivansson ae8234d391 Fix prettier and tests.
Signed-off-by: Linnéa Ivansson <liniv742@student.liu.se>
2022-12-06 20:15:33 +01:00