Skip to content

Commit

Permalink
add guest user (#42)
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu McCloskey <[email protected]>
  • Loading branch information
nabuskey authored Oct 10, 2024
1 parent 2b12c4d commit 2ed8e1d
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
argocd/app-name: ${{values.name | dump}}
spec:
type: s3-bucket
owner: guest
owner: guests
---
apiVersion: backstage.io/v1alpha1
kind: Component
Expand All @@ -24,7 +24,7 @@ metadata:
title: Repo URL
icon: github
spec:
owner: guest
owner: guests
lifecycle: experimental
type: service
system: ${{values.name | dump}}
Expand All @@ -43,6 +43,6 @@ metadata:
title: CNOE Repo
icon: github
spec:
owner: guest
owner: guests
lifecycle: experimental
type: service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: app-with-aws-resources
title: Add a Go App with AWS resources
spec:
owner: guest
owner: guests
type: service
parameters:
- properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
title: Repo URL
icon: github
spec:
owner: guest
owner: guests
lifecycle: experimental
type: service
system: ${{values.name | dump}}
Expand All @@ -35,6 +35,6 @@ metadata:
title: CNOE Repo
icon: github
spec:
owner: guest
owner: guests
lifecycle: experimental
type: service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: argo-workflows-basic
title: Basic Argo Workflow with a Spark Job
spec:
owner: guest
owner: guests
type: service
parameters:
- title: Configuration Options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
title: Repo URL
icon: github
spec:
owner: guest
owner: guests
lifecycle: experimental
type: service
system: ${{values.name | dump}}
Expand All @@ -31,6 +31,6 @@ metadata:
title: CNOE Repo
icon: github
spec:
owner: guest
owner: guests
lifecycle: experimental
type: service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: basic
title: Create a Basic Deployment
spec:
owner: guest
owner: guests
type: service
parameters:
- title: Configuration Options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ spec:
- ./basic/template.yaml
- ./argo-workflows/template.yaml
- ./app-with-bucket/template.yaml
---
apiVersion: backstage.io/v1alpha1
kind: Location
metadata:
name: basic-organization
description: Basic organization data
spec:
targets:
- ./organization/guests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: backstage.io/v1alpha1
kind: User
metadata:
name: guest
spec:
memberOf: [guests]
---
apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
name: guests
spec:
type: team
children: []
7 changes: 2 additions & 5 deletions ref-implementation/backstage/manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,8 @@ data:
# Examples from a public GitHub repository.
- type: url
target: https://cnoe.localtest.me/gitea/giteaAdmin/idpbuilder-localdev-backstage-templates-entities/raw/branch/main/catalog-info.yaml
## Uncomment these lines to add an example org
# - type: url
# target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme-corp.yaml
# rules:
# - allow: [User, Group]
rules:
- allow: [Component, System, API, Resource, Location, Template, User, Group]
kubernetes:
serviceLocatorMethod:
type: 'multiTenant'
Expand Down

0 comments on commit 2ed8e1d

Please sign in to comment.