Skip to content

Instantly share code, notes, and snippets.

@iammuho
Created May 10, 2021 08:23
Show Gist options
  • Save iammuho/d54bafd52dbca99929ab6dca2a3564a5 to your computer and use it in GitHub Desktop.
Save iammuho/d54bafd52dbca99929ab6dca2a3564a5 to your computer and use it in GitHub Desktop.
apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
name: tribe-a
namespace: company
description: This is tribe-a tribe of company
spec:
type: tribe
profile:
displayName: Tribe A
children:
- group:tribe-a/squad-a
---
apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
name: squad-a
namespace: tribe-a
description: This is squad-a tribe of company/tribe-a
spec:
type: squad
profile:
displayName: Squad A
parent: tribe-a
children:
- group:squad-a/project-a
---
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: project-a
namespace: squad-a
description: This is project-a tribe of company/tribe-a/squad-a
spec:
type: squad
profile:
displayName: Project A
parent: squad-a
@benjdlambert
Copy link

benjdlambert commented May 10, 2021

apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
    name: tribe-a
    namespace: company
    description: This is tribe-a tribe of company
spec:
    type: tribe
    profile:
        displayName: Tribe A
    children:
        - group:tribe-a/squad-a
---
apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
    name: squad-a
    namespace: tribe-a
    description: This is squad-a tribe of company/tribe-a
spec:
    type: squad
    profile:
        displayName: Squad A
    children: []
---
apiVersion: backstage.io/v1alpha1
kind: User
metadata:
  name: nigel.manning
spec:
  profile:
    displayName: Nigel Manning
    email: [email protected]
    picture: https://avatars.dicebear.com/api/avataaars/[email protected]?background=%23fff
  memberOf: 
    - group:tribe-a/squad-a
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
    name: project-a
    namespace: squad-a
    description: This is project-a tribe of company/tribe-a/squad-a
spec:
    type: service
    owner: group:tribe-a/squad-a
    lifecycle: production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment