Fix owner references to guest user
If the user guest is used as an example value of the owner field, we should make sure to specify it as user:guest instead as the default is group. Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core': patch
|
||||
---
|
||||
|
||||
Improve owner example value in `MissingAnnotationEmptyState`.
|
||||
@@ -30,7 +30,7 @@ metadata:
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: production
|
||||
owner: guest`;
|
||||
owner: user:guest`;
|
||||
|
||||
type Props = {
|
||||
annotation: string;
|
||||
|
||||
@@ -38,7 +38,7 @@ describe('parseEntityYaml', () => {
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: production
|
||||
owner: guest
|
||||
owner: user:guest
|
||||
`,
|
||||
'utf8',
|
||||
),
|
||||
@@ -60,7 +60,7 @@ describe('parseEntityYaml', () => {
|
||||
spec: {
|
||||
type: 'website',
|
||||
lifecycle: 'production',
|
||||
owner: 'guest',
|
||||
owner: 'user:guest',
|
||||
},
|
||||
}),
|
||||
]);
|
||||
|
||||
@@ -30,7 +30,7 @@ TBD
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: production
|
||||
owner: guest
|
||||
owner: user:guest
|
||||
```
|
||||
|
||||
### Standalone app requirements
|
||||
|
||||
@@ -9,4 +9,4 @@ metadata:
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: production
|
||||
owner: guest
|
||||
owner: user:guest
|
||||
|
||||
@@ -10,4 +10,4 @@ metadata:
|
||||
spec:
|
||||
type: service
|
||||
lifecycle: production
|
||||
owner: guest
|
||||
owner: user:guest
|
||||
|
||||
@@ -5,4 +5,4 @@ metadata:
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: experimental
|
||||
owner: guest
|
||||
owner: user:guest
|
||||
|
||||
Reference in New Issue
Block a user