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
Carlos Esteban Lopez
1326691934
fix: Fix tests broken by @backstage/core-components update
...
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com >
2022-11-30 15:37:49 -05:00
Linnéa Ivansson
fd0b42cb27
Removed Devider generaly between grid items.
...
Signed-off-by: Linnéa Ivansson <linnea.ivansson01@gmail.com >
2022-11-23 10:17:48 +01:00
Linnéa Ivansson
53c7a9e7d6
Remove unused imports.
...
Signed-off-by: Linnéa Ivansson <linnea.ivansson01@gmail.com >
2022-11-21 14:54:29 +01:00
Linnéa Ivansson
54017517f9
Remove the no longer used ErrorEmptyState component.
...
Signed-off-by: Linnéa Ivansson <linnea.ivansson01@gmail.com >
2022-11-21 14:49:34 +01:00
Linnéa Ivansson
b1ee867101
Remove conditional rendering for ErrorEmptyState.
...
Signed-off-by: Linnéa Ivansson <linnea.ivansson01@gmail.com >
2022-11-21 14:42:01 +01:00
Matthew Clarke
35a6cfe257
fix: useCustomResource hook infinite call ( #13835 )
...
* fix: useCustomResource hook infinite call
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* prettier
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
2022-09-26 17:22:34 -04:00
Matthew Clarke
51af8361de
feat(kubernetes): Add custom resource fetch hook ( #13736 )
...
* feat(kubernetes): wip crd hook
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* refactor hooks
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* fix tests
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* changeset
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* api reports
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* typo
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
2022-09-21 20:05:05 +02:00
Matthew Clarke
72e610f0e4
pr feedback
...
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
2022-09-19 15:57:13 -04:00
Matthew Clarke
b87a88776d
(feat): kubernetes add new backend endpoints to api interface
...
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
2022-09-15 21:59:57 -04:00
Tomas Aschan
2340880b05
Format with prettier
...
Signed-off-by: Tomas Aschan <tomasl@spotify.com >
2022-09-05 23:54:13 +02:00
Tomas Aschan
a638348c8b
Automated whitespace changes
...
Signed-off-by: Tomas Aschan <tomasl@spotify.com >
2022-09-05 23:30:28 +02:00
Tomas Aschan
5d0eff2e00
Set data and error atomically
...
Signed-off-by: Tomas Aschan <tomasl@spotify.com >
2022-09-05 23:30:28 +02:00
Tomas Aschan
8da70d0fc1
Implement regression tests
...
Signed-off-by: Tomas Aschan <tomasl@spotify.com >
2022-09-05 23:30:27 +02:00
Tomas Aschan
9f8dd192c9
Reset error on success path
...
If a re-render - or simply the intervalMs parameter - causes a retry that
turns a previously failed operation into a successful one, the error was
previously not reset, resulting in the somewhat odd combination of an
error message and a full, successful, response data object.
This change ensures that the error state is reset every time an operation
succeeds, so the UI state remains consistent.
Signed-off-by: Tomas Aschan <tomasl@spotify.com >
2022-09-05 23:30:26 +02:00
Fredrik Adelöw
aaab1e34da
Fix linting errors after #13392
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-08-30 13:44:09 +02:00
Fredrik Adelöw
ef9ab322de
it just keeps 🧹 -ing
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-08-18 17:21:00 +02:00
Brad Reed 😎
34504ab52b
feat(kubernetes): add namespace to k8s error reporting table
...
Signed-off-by: Brad Reed 😎 <brad@bradreed.co.uk >
2022-08-02 12:18:15 +02:00
Jonathan Stacks
d78395a0c1
Fixes #12847 - Handle kubernetes cron job aliases
...
Signed-off-by: Jonathan Stacks <jonstacks13@gmail.com >
2022-07-27 21:38:23 -05:00
goenning
1c752277c6
fix api-reports
...
Signed-off-by: goenning <me@goenning.net >
2022-07-11 14:13:17 +01:00
Guilherme Oenning
2b0ba754da
Merge branch 'backstage:master' into go/expose-detecterrors
2022-07-11 09:44:05 +01:00
Matthew Clarke
f5c9730639
(feat): easier Kubernetes local development steps ( #12373 )
...
* (feat): easier kubernetes local deevlopment steps
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* add changeset
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* update api docs
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
* fix typo
Signed-off-by: Matthew Clarke <mclarke@spotify.com >
2022-07-07 09:45:25 +02:00
blam
8e6be0411f
chore: fixing the tests for the k8s client bump
...
Signed-off-by: blam <ben@blam.sh >
Signed-off-by: blam <ben@blam.sh >
2022-07-05 10:38:32 +02:00
Patrik Oldsberg
b5e056f312
Merge pull request #11603 from goenning/go/refresh-rate-k8s
...
[Kubernetes Plugin] ability to configure refresh interval on Kubernetes tab
2022-06-03 16:55:23 +02:00
goenning
b9b8bbc7d9
add CPU and Memory to Pod table
...
Signed-off-by: goenning <me@goenning.net >
2022-05-30 16:35:28 +01:00
Patrik Oldsberg
fb5f1107d3
kubernetes: fix merge conflict of getMatchingHpa call
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-05-19 16:45:28 +02:00
Johan Haals
35d48df50a
Merge pull request #11505 from ivangonzalezacuna/feature/kubernetes-statefulsets
...
Add support for statefulsets in kubernetes
2022-05-19 14:08:25 +02:00
goenning
5553f09e80
ability to configure refresh interval on Kubernetes tab
...
Signed-off-by: goenning <me@goenning.net >
2022-05-18 19:56:50 +01:00
goenning
81304e3e91
Fix for HPA matching when deploying same HPA in multiple namespaces
...
Signed-off-by: goenning <me@goenning.net >
2022-05-16 16:49:42 +01:00
goenning
3ec294a186
expose detectErrors function publicly
...
Signed-off-by: goenning <me@goenning.net >
2022-05-13 13:35:02 +01:00
ivgo
4328737af6
Add support for statefulsets in kubernetes
...
Signed-off-by: ivgo <ivgo@spreadgroup.com >
2022-05-13 11:09:08 +02:00
Daniel Bravo
cdf3ca2b84
Address comments on pr for k8s oidc authProvider
...
Signed-off-by: Daniel Bravo <dbravo@vmware.com >
2022-05-06 15:38:09 -05:00