fix annotation
fix readme Signed-off-by: Wesley Pattison <wesley.pattison@friss.com>
This commit is contained in:
@@ -13,7 +13,7 @@ The following sections will help you get the Azure Backend plugin setup and runn
|
||||
The Azure plugin requires the following YAML to be added to your app-config.yaml:
|
||||
|
||||
```yaml
|
||||
azure:
|
||||
azureFunctions:
|
||||
domain:
|
||||
tenantId:
|
||||
clientId:
|
||||
|
||||
@@ -21,7 +21,7 @@ You need to set up the Azure backend plugin before you move forward with any of
|
||||
To be able to use the Azure plugin you need to add the following annotation to any entities you want to use it with:
|
||||
|
||||
```yaml
|
||||
azure.com/microsoft.web/sites: <name>
|
||||
azure.com/microsoft-web-sites: <name>
|
||||
```
|
||||
|
||||
`<name>` supports case-insensitive exact / partial value.
|
||||
@@ -39,7 +39,7 @@ func-testapp-us
|
||||
The annotation you will use to have the three functions' app appear in the overview table would look like this:
|
||||
|
||||
```yaml
|
||||
azure.com/microsoft.web/sites: func-testapp
|
||||
azure.com/microsoft-web-sites: func-testapp
|
||||
```
|
||||
|
||||
### Install the component
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
|
||||
export const AZURE_WEB_SITE_NAME_ANNOTATION = 'azure.com/microsoft.web/sites';
|
||||
export const AZURE_WEB_SITE_NAME_ANNOTATION = 'azure.com/microsoft-web-sites';
|
||||
export const useServiceEntityAnnotations = (entity: Entity) => {
|
||||
const webSiteName =
|
||||
entity?.metadata.annotations?.[AZURE_WEB_SITE_NAME_ANNOTATION] ?? '';
|
||||
|
||||
@@ -20,7 +20,7 @@ export const entityMock = {
|
||||
metadata: {
|
||||
namespace: 'default',
|
||||
annotations: {
|
||||
'azure.com/microsoft.web/sites': 'func-mock',
|
||||
'azure.com/microsoft-web-sites': 'func-mock',
|
||||
},
|
||||
name: 'sample-azure-service',
|
||||
description: 'A service for testing Backstage functionality.',
|
||||
|
||||
Reference in New Issue
Block a user