Fredrik Adelöw
725cd72496
Merge pull request #14314 from magnusp/sonarqube-public-api
...
Expose SonarQube API and helpers
2022-12-15 22:17:30 +01:00
Fredrik Adelöw
ce23b273a1
Merge pull request #15250 from jamieklassen/node-fetch-k8s
...
[kubernetes] use node-fetch and gracefully surface fetcherrors
2022-12-15 21:21:30 +01:00
Johan Haals
1113b2ad1e
Merge pull request #15205 from backstage/renovate/backstage-actions-0.x
...
Update backstage/actions action to v0.5.11
2022-12-15 16:42:18 +01:00
Johan Haals
fbe845bf8c
Merge pull request #15257 from backstage/jhaals/quote-docs
...
repo-tools: Quote markdown headers in api-docs
2022-12-15 16:39:29 +01:00
Johan Haals
ac440299ef
repo-tools: Quote markdown headers
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2022-12-15 16:22:04 +01:00
renovate[bot]
611cea00a4
Update backstage/actions action to v0.5.11
...
Signed-off-by: Renovate Bot <bot@renovateapp.com >
2022-12-15 14:33:20 +00:00
Patrik Oldsberg
b879c79bb9
Merge pull request #15256 from stephanschielke/patch-2
...
Update ADOPTERS.md
2022-12-15 15:25:14 +01:00
Eric Peterson
e2c798e31c
Merge pull request #14938 from backstage/search/resilient-indices
...
[Search] Preserve existing index if latest index run contains no documents
2022-12-15 15:24:11 +01:00
Patrik Oldsberg
3a958300e0
Merge pull request #15206 from backstage/include-asset-type
...
fix: include asset types for repo tools package
2022-12-15 15:21:37 +01:00
Stephan Schielke
7fe1882f2a
Update ADOPTERS.md
...
Added Tractable AI
Signed-off-by: Stephan Schielke <401815+stephanschielke@users.noreply.github.com >
2022-12-15 14:13:42 +00:00
djamaile
c210d70218
chore: add try and catch around require resolve
...
Signed-off-by: djamaile <rdjamaile@gmail.com >
2022-12-15 14:46:21 +01:00
Patrik Oldsberg
002048e6f3
Merge pull request #15245 from backstage/mob/log
...
backend-plugin-api: update logger interface with more methods and meta
2022-12-15 14:24:28 +01:00
Patrik Oldsberg
9518e5e5e6
backend-plugin-api: more runtime safety in loggerToWinstonLogger
...
Co-authored-by: Johan Haals <johan.haals@gmail.com >
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-15 13:55:11 +01:00
Patrik Oldsberg
7cd01231b5
backend-plugin-api: separate out Error from LogMeta + limit to indexed objects
...
Co-authored-by: Johan Haals <johan.haals@gmail.com >
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-15 13:54:31 +01:00
djamaile
82bd45528a
chore: add try and catch around require resolve
...
Signed-off-by: djamaile <rdjamaile@gmail.com >
2022-12-15 13:53:02 +01:00
Fredrik Adelöw
37f35ef8ed
Merge pull request #15253 from backstage/freben/docker-workflow
...
fix the docker workflow
2022-12-15 11:55:39 +01:00
Fredrik Adelöw
759910d97c
fix the docker workflow
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-12-15 11:37:08 +01:00
Fredrik Adelöw
a29773b2cd
Merge pull request #14980 from iriswang233/Track-the-last-time-the-final-entity-changed
...
Track the last time the final entity changed
2022-12-15 11:17:57 +01:00
iris
b568378cf8
add migration testing for 20221201085245_add_last_updated_at_in_final_entities
...
Signed-off-by: iris <hellocomplex007@gmail.com >
2022-12-15 15:44:09 +08:00
iris
860fbcde3b
add ts-check
...
Signed-off-by: iris <hellocomplex007@gmail.com >
2022-12-15 15:30:52 +08:00
iris
bcd800bb33
make last_updated_at optional
...
Signed-off-by: iris <hellocomplex007@gmail.com >
2022-12-15 15:29:20 +08:00
Patrik Oldsberg
a3fe6cccf2
Merge pull request #14985 from backstage/mob/pls-stop
...
backend-app-api, backend-test-utils: added backend.stop() and auto stop in tests
2022-12-15 01:06:52 +01:00
Jamie Klassen
2db8acffe7
add changeset
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:55:53 -05:00
Jamie Klassen
7341131af5
warning is a full sentence mentioning cluster name
...
This seems like a more helpful log message for operators, especially those
with many clusters.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
b008ccee54
throw when missing token and not on k8s
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -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
a5a9d3318a
don't surface non-FetchErrors
...
It makes sense to gracefully show an error that was actually related to fetching
data from Kubernetes, but if the error is happening for some other exotic
reason, the default error handling logic in Backstage should take over and
log/manage it appropriately.
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
Jamie Klassen
fcf8d33014
node-fetch-based implementation for pod metrics
...
which eliminates the need for the KubernetesClientProvider
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
f54362ad57
use node-fetch for k8s resources
...
The main advantage this has over using the list*CustomObject methods is that it
won't reject non-OK statuses, so we won't have to be so careful about
catching and rethrowing.
Personally I find it a bit clearer to see the actual requests rather than the
client methods with all those empty arguments, and a side benefit is that this
implementation uses the fetch API -- under the covers, @kubernetes/client-node
is using the deprecated request library.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
99ca12978d
spy on https calls to check caData
...
This is a little awkward, but at the moment msw doesn't give much of a means of
interacting with the non-WHATWG-Fetch-spec aspects of a request.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
df716f5ed5
metrics tests use msw instead of mocks
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
7e2cd3c357
backfill test for warning log
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
030f9cb5c1
backfill test for non-kubernetes error
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
15ad4b2389
stub k8s API checks bearer tokens
...
Also, use idiomatic ResponseTransformers to clean up the individual tests.
Finally, modify the "unauthorized error handling" spec to provide an invalid
token to an otherwise-realistic stub k8s API.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
d31fe28625
backfill test for loading default kubeconfig
...
Strictly speaking, the `loadFromDefault` method on `KubeConfig` as it is
being called in `KubernetesClientProvider` has many other behaviours that this
test does not exercise -- it has logic for reading kubeconfig files (based on
an env var or default location in a home directory), provisions for running on
Windows, and even contacting an apiserver on localhost.
I'm making a breaking assumption here that these other scenarios are not
important for Backstage users, and the one that really matters is the
in-cluster one described in this test.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
f7ccaef866
convert fetchObjectsForService mocks to msw
...
this will allow some dramatic refactoring
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Fredrik Adelöw
afbcb1b575
Merge pull request #15248 from backstage/freben/circ
...
🧹 Removed circular import in the errors package
2022-12-14 22:58:38 +01:00
Patrik Oldsberg
5a18e01bfa
backend-test-utils: check afterEach -> afterAll
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-14 22:52:38 +01:00
Magnus Persson
6b59903bfa
Add changeset
...
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se >
2022-12-14 22:27:27 +01:00
Magnus Persson
836b30e61c
Update api-report.md
...
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se >
2022-12-14 22:27:27 +01:00
Magnus Persson
19f8ad4262
Keep types but marked deprecated
...
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se >
2022-12-14 22:27:27 +01:00
Magnus Persson
b3a304e78e
Reference @backstage/plugin-sonarqube-react from @backstage/plugin-sonarqube
...
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se >
2022-12-14 22:27:27 +01:00
Magnus Persson
2b555e3b83
Add @backstage/plugin-sonarqube-react
...
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se >
2022-12-14 22:27:27 +01:00
Fredrik Adelöw
ac6cc9f7bd
Removed circular import in the errors package
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-12-14 21:56:04 +01:00
Fredrik Adelöw
12ba9c2efe
Merge pull request #15246 from backstage/renovate/swc-core-1.x-lockfile
...
Update dependency @swc/core to v1.3.23
2022-12-14 21:49:19 +01:00
renovate[bot]
a9d0438c11
Update dependency @swc/core to v1.3.23
...
Signed-off-by: Renovate Bot <bot@renovateapp.com >
2022-12-14 17:02:18 +00:00
Patrik Oldsberg
341927c47e
backend-test-utils: stop all running test instances concurrently
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-14 18:00:51 +01:00
Patrik Oldsberg
2dbe5f00c5
changesets: update changeset to reflect startTestBackend updates
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-14 18:00:32 +01:00
Patrik Oldsberg
2ee44029f9
backend-plugin-api: update API report
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-14 17:56:32 +01:00