Merge remote-tracking branch 'origin/master' into reconfigure

This commit is contained in:
bnechyporenko
2022-05-20 08:57:23 +02:00
582 changed files with 15925 additions and 3612 deletions
@@ -371,6 +371,7 @@ following objects:
- replicasets
- horizontalpodautoscalers
- ingresses
- statefulsets
The following RBAC permissions are required on the batch API group for the
following objects:
@@ -159,5 +159,6 @@ scaffolder backend:
| Utility actions | [scaffolder-backend-module-utils](https://www.npmjs.com/package/@roadiehq/scaffolder-backend-module-utils) | [Roadie](https://roadie.io) |
| AWS cli actions | [scaffolder-backend-module-aws](https://www.npmjs.com/package/@roadiehq/scaffolder-backend-module-aws) | [Roadie](https://roadie.io) |
| Scaffolder .NET Actions | [plugin-scaffolder-dotnet-backend](https://www.npmjs.com/package/@plusultra/plugin-scaffolder-dotnet-backend) | [Alef Carlos](https://github.com/alefcarlos) |
| Scaffolder Git Actions | [plugin-scaffolder-git-actions](https://www.npmjs.com/package/@mdude2314/backstage-plugin-scaffolder-git-actions) | [Drew Hill](https://github.com/arhill05) |
Have fun! 🚀
@@ -161,3 +161,24 @@ spec:
description: My custom name for the component
ui:field: MyCustomExtension
```
## Access Data from other Fields
Custom fields extensions can read data from other fields in the form via the form context. This
is something that we discourage due to the coupling that it creates, but is sometimes still
the most sensible solution.
```tsx
const CustomFieldExtensionComponent = (props: FieldExtensionComponentProps<string[]>) => {
const { formData } = props.formContext;
...
};
const CustomFieldExtension = scaffolderPlugin.provide(
createScaffolderFieldExtension({
name: ...,
component: CustomFieldExtensionComponent,
validation: ...
})
);
```
-5
View File
@@ -4,11 +4,6 @@ title: TechDocs Addons
description: How to find, use, or create TechDocs Addons.
---
> Note: This page contains documentation for features that have not yet been
> released on a [main-line version](https://backstage.io/docs/overview/versioning-policy#main-release-line)
> of Backstage and TechDocs. We plan to make Addons generally available in
> Backstage v1.2.
## Concepts
TechDocs is a centralized platform for publishing, viewing, and discovering
+1 -1
View File
@@ -67,7 +67,7 @@ import { AwsS3EntityProvider } from '@backstage/plugin-catalog-backend-module-aw
const builder = await CatalogBuilder.create(env);
/** ... other processors and/or providers ... */
builder.addEntityProvider(
...AwsS3EntityProvider.fromConfig(env.config, {
AwsS3EntityProvider.fromConfig(env.config, {
logger: env.logger,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { minutes: 30 },
+1 -1
View File
@@ -30,7 +30,7 @@ import { Duration } from 'luxon';
const builder = await CatalogBuilder.create(env);
/** ... other processors and/or providers ... */
builder.addEntityProvider(
...GerritEntityProvider.fromConfig(env.config, {
GerritEntityProvider.fromConfig(env.config, {
logger: env.logger,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { minutes: 30 },
+2 -2
View File
@@ -53,7 +53,7 @@ Let's change the policy to the following:
+ } from '@backstage/plugin-catalog-backend/alpha';
+ import {
+ catalogEntityDeletePermission,
+ } from '@backstage/plugin-catalog-common';
+ } from '@backstage/plugin-catalog-common/alpha';
...
@@ -106,7 +106,7 @@ import {
} from '@backstage/plugin-catalog-backend/alpha';
- import {
- catalogEntityDeletePermission,
- } from '@backstage/plugin-catalog-common';
- } from '@backstage/plugin-catalog-common/alpha';
...
File diff suppressed because it is too large Load Diff
+67
View File
@@ -0,0 +1,67 @@
---
id: v1.2.0
title: v1.2.0
description: Backstage Release v1.2.0
---
These are the release notes for the v1.2.0 release of [Backstage](https://backstage.io/).
A huge thanks to the whole team of maintainers and contributors as well as the amazing Backstage Community for the hard work in getting this release developed and done.
## Highlights
### TechDocs
The TechDocs addon framework is now generally available! See the [TechDocs Addons](https://backstage.io/docs/features/techdocs/addons) documentation for more information on how to customize your views.
### New plugin: ADR
The new `@backstage/plugin-adr` lets you track your active ADRs inside Backstage! Contributed by [@kuangp](https://github.com/kuangp)
### New Plugin: CodeScene plugin
The CodeScene Backstage plugin exposes a page component that will list the existing projects and their analysis data on your CodeScene instance. Contributed by [@julio](https://github.com/julioz) [#10777](https://github.com/backstage/backstage/pull/10777)
### New plugin: plugin-catalog-backend-module-gerrit
Gerrit integration is here! See docs on [gerrit discovery](https://backstage.io/docs/integrations/gerrit/discovery) and [gerrit locations](https://backstage.io/docs/integrations/gerrit/locations) for more information.
Contributed by [@anicke](https://github.com/anicke) [#10669](https://github.com/backstage/backstage/pull/10669)
### Integrations
Bitbucket Server and Bitbucket Cloud have been split up internally as the feature sets differ slightly, new scaffolder actions and integrations config has been added to accommodate a gradual migration. Contributed by [@pjungermann](https://github.com/pjungermann)
### Backend-common
Server-to-server authentication tokens issued from a TokenManager (specifically, ServerTokenManager) now has an expiry time set, for one hour in the future from when issued. This improves security. The ability to pass in and validate tokens that either have a missing exp claim, or an exp claim that expired in the past, is now deprecated. Trying to do so will lead to logged warnings, and in a future release will instead lead to errors.
[#11262](https://github.com/backstage/backstage/pull/11262)
### Kubernetes
Added support for `oidc` as authProvider for kubernetes authentication and added an optional `oidcTokenProvider` config value. This will allow users to authenticate to kubernetes clusters using ID tokens obtained from the configured auth provider in their Backstage instance. Contributed by @dbravovmw(https://github.com/dbravovmw). #11328(https://github.com/backstage/backstage/pull/11328)
### Misc
The `TaskScheduleDefinition` of the backend task scheduler has been updated to also accept an options object containing duration information in the form of days, hours, seconds and so on. This allows for scheduling without importing luxon. [#11245](https://github.com/backstage/backstage/pull/11245)
Added the ability to render a custom component when an entity is not found [#11047](https://github.com/backstage/backstage/pull/11047)
## Security Fixes
`@backstage/plugin-scaffolder-backend-module-rails`, please upgrade to the latest version if you are using this module.
## Upgrade path
We recommend that you keep your Backstage project up to date with this latest release. For more guidance on how to upgrade, check out the documentation for [keeping Backstage updated](https://backstage.io/docs/getting-started/keeping-backstage-updated).
## Links and References
Below you can find a list of links and references to help you learn about and start using this new release.
- [Backstage official website](https://backstage.io/), [documentation](https://backstage.io/docs/), and [getting started guide](https://backstage.io/docs/getting-started/)
- [GitHub repository](https://github.com/backstage/backstage)
- Backstage's [versioning and support policy](https://backstage.io/docs/overview/versioning-policy)
- [Community Discord](https://discord.gg/bFESRKVt) for discussions and support
- [Changelog](https://github.com/backstage/backstage/tree/master/docs/releases/v1.2.0-changelog.md)
- Backstage [Demos](https://backstage.io/demos), [Blog](https://backstage.io/blog), [Roadmap](https://backstage.io/docs/overview/roadmap) and [Plugins](https://backstage.io/plugins)
Sign up for our [newsletter](https://mailchi.mp/spotify/backstage-community) if you want to be informed about what is happening in the world of Backstage.