Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #78 from bradmccoydev/add-backstage-k8s-labels
Browse files Browse the repository at this point in the history
feat: add backstage labels
  • Loading branch information
bradmccoydev authored Dec 16, 2022
2 parents 3a44b5d + c252a30 commit 9873d30
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app-config.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ kubernetes:
authProvider: 'serviceAccount'
skipTLSVerify: true
skipMetricsLookup: true

argocd:
username: ${ARGOCD_USERNAME}
password: ${ARGOCD_PASSWORD}
Expand Down Expand Up @@ -97,3 +96,7 @@ catalog:
target: https://github.com/ortelius/backstage/blob/main/catalog-info.yaml
rules:
- allow: [User, Group]
- type: github-org
target: https://github.com/basiqio
rules:
- allow: [Group, User]
21 changes: 21 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,24 @@ spec:
owner: user:guest
lifecycle: production
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: ortelius-docs
description: Ortelius Docs
annotations:
backstage.io/kubernetes-id: backstage-frontend
github.com/project-slug: ortelius/backstage
github.com/project-readme-path: README.md
tags:
- platform
links:
- url: https://backstage.ortelius.io
title: Backstage Portal
icon: dashboard
type: admin-dashboard
spec:
type: service
owner: user:guest
lifecycle: production
---
4 changes: 2 additions & 2 deletions chart/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: A Helm chart for the Ortelius Backstage Instance

type: application

version: 0.0.18
appVersion: "0.0.18"
version: 0.0.19
appVersion: "0.0.19"

home: "https://ortelius.io"
icon: https://backstage.io/img/twitter-summary.png
Expand Down
2 changes: 2 additions & 0 deletions chart/backstage/templates/app/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Common labels
{{- define "backstage.appLabels" -}}
{{ include "backstage.labels" . }}
app.kubernetes.io/component: app
backstage.io/kubernetes-id: backstage-frontend
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ Selector labels
{{- define "backstage.appSelectorLabels" -}}
{{ include "backstage.selectorLabels" . }}
app.kubernetes.io/component: app
backstage.io/kubernetes-id: backstage-frontend
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions chart/backstage/templates/backend/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Common labels
{{- define "backstage.backendLabels" -}}
{{ include "backstage.labels" . }}
app.kubernetes.io/component: backend
backstage.io/kubernetes-id: backstage-backend
{{- end }}

{{/*
Expand All @@ -19,6 +20,7 @@ Selector labels
{{- define "backstage.backendSelectorLabels" -}}
{{ include "backstage.selectorLabels" . }}
app.kubernetes.io/component: backend
backstage.io/kubernetes-id: backstage-backend
{{- end }}

{{/*
Expand Down

0 comments on commit 9873d30

Please sign in to comment.