Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## What does this PR do / why we need it

## Which issue(s) does this PR fix

Fixes #?

## PR acceptance criteria

- [ ] Unit Tests
- [ ] E2E Tests
- [ ] Documentation

## How to test changes / Special notes to the reviewer
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright 2023 Janus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: CI
on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

jobs:
ci:
name: Main Job
runs-on: ubuntu-latest

env:
NX_SKIP_NX_CACHE: true

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install
run: |
yarn install --frozen-lockfile

- name: Lint
run: |
yarn lint:all
yarn tsc:full
yarn prettier:check

- name: Test
run: |
yarn test:all

- name: Build
run: |
yarn build:all
38 changes: 38 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2023 Janus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Docker Build
on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

jobs:
docker-build:
name: Docker Build Job
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Docker
run: |
docker build -t backstage-showcase .
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
dist-types
coverage
.vscode
*.yaml
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"arrowParens": "always",
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all"
}
4 changes: 2 additions & 2 deletions charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: backstage
description: A helm chart for deploying Backstage
version: 0.1.6
appVersion: "v1.7.0"
kubeVersion: ">= 1.19.0-0"
appVersion: 'v1.7.0'
kubeVersion: '>= 1.19.0-0'
home: https://github.com/janus-idp/helm-backstage
annotations:
charts.openshift.io/name: backstage
112 changes: 56 additions & 56 deletions charts/backstage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,59 +30,59 @@ Replace `<RELEASE>` with the name of the Helm release that was used when install

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| additionalConfig | object | `{}` | |
| backstage.baseUrl | string | `""` | |
| backstage.catalog.locations[0].target | string | `"https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all-components.yaml"` | |
| backstage.catalog.locations[0].type | string | `"url"` | |
| backstage.catalog.rules[0].allow[0] | string | `"Component"` | |
| backstage.catalog.rules[0].allow[1] | string | `"System"` | |
| backstage.catalog.rules[0].allow[2] | string | `"API"` | |
| backstage.catalog.rules[0].allow[3] | string | `"Resource"` | |
| backstage.catalog.rules[0].allow[4] | string | `"Location"` | |
| backstage.companyname | string | `"Red Hat Backstage Helm Chart"` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"Always"` | |
| image.registry | string | `"ghcr.io"` | |
| image.repository | string | `"janus-idp/redhat-backstage-build"` | |
| image.version | string | `"latest"` | |
| imagePullSecrets | list | `[]` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.tls.secretName | string | `""` | |
| name | string | `"backstage"` | |
| nameOverride | string | `""` | |
| postgres.database_host | string | `""` | |
| postgres.database_name | string | `"postgres"` | |
| postgres.database_password | string | `""` | |
| postgres.database_port | int | `5432` | |
| postgres.database_user | string | `"postgres"` | |
| postgres.existingSecret | string | `""` | |
| postgres.external | bool | `false` | |
| postgres.image.pullPolicy | string | `"Always"` | |
| postgres.image.registry | string | `"quay.io"` | |
| postgres.image.repository | string | `"fedora/postgresql-13"` | |
| postgres.image.version | string | `"13"` | |
| postgres.resources.limits.cpu | string | `"400m"` | |
| postgres.resources.limits.memory | string | `"596Mi"` | |
| postgres.resources.requests.cpu | string | `"100m"` | |
| postgres.resources.requests.memory | string | `"128Mi"` | |
| postgres.secretKeys.adminPasswordKey | string | `""` | |
| postgres.serviceAccount.annotations | object | `{}` | |
| postgres.serviceAccount.create | bool | `true` | |
| postgres.serviceAccount.name | string | `""` | |
| postgres.storage.enabled | bool | `true` | |
| postgres.storage.size | string | `"2Gi"` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| route.annotations | object | `{}` | |
| route.enabled | bool | `true` | |
| route.termination | string | `"edge"` | |
| securityContext | object | `{}` | |
| service.port | int | `8080` | |
| service.targetPort | int | `7007` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| Key | Type | Default | Description |
| ------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------- | ----------- |
| additionalConfig | object | `{}` | |
| backstage.baseUrl | string | `""` | |
| backstage.catalog.locations[0].target | string | `"https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all-components.yaml"` | |
| backstage.catalog.locations[0].type | string | `"url"` | |
| backstage.catalog.rules[0].allow[0] | string | `"Component"` | |
| backstage.catalog.rules[0].allow[1] | string | `"System"` | |
| backstage.catalog.rules[0].allow[2] | string | `"API"` | |
| backstage.catalog.rules[0].allow[3] | string | `"Resource"` | |
| backstage.catalog.rules[0].allow[4] | string | `"Location"` | |
| backstage.companyname | string | `"Red Hat Backstage Helm Chart"` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"Always"` | |
| image.registry | string | `"ghcr.io"` | |
| image.repository | string | `"janus-idp/redhat-backstage-build"` | |
| image.version | string | `"latest"` | |
| imagePullSecrets | list | `[]` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.tls.secretName | string | `""` | |
| name | string | `"backstage"` | |
| nameOverride | string | `""` | |
| postgres.database_host | string | `""` | |
| postgres.database_name | string | `"postgres"` | |
| postgres.database_password | string | `""` | |
| postgres.database_port | int | `5432` | |
| postgres.database_user | string | `"postgres"` | |
| postgres.existingSecret | string | `""` | |
| postgres.external | bool | `false` | |
| postgres.image.pullPolicy | string | `"Always"` | |
| postgres.image.registry | string | `"quay.io"` | |
| postgres.image.repository | string | `"fedora/postgresql-13"` | |
| postgres.image.version | string | `"13"` | |
| postgres.resources.limits.cpu | string | `"400m"` | |
| postgres.resources.limits.memory | string | `"596Mi"` | |
| postgres.resources.requests.cpu | string | `"100m"` | |
| postgres.resources.requests.memory | string | `"128Mi"` | |
| postgres.secretKeys.adminPasswordKey | string | `""` | |
| postgres.serviceAccount.annotations | object | `{}` | |
| postgres.serviceAccount.create | bool | `true` | |
| postgres.serviceAccount.name | string | `""` | |
| postgres.storage.enabled | bool | `true` | |
| postgres.storage.size | string | `"2Gi"` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| route.annotations | object | `{}` | |
| route.enabled | bool | `true` | |
| route.termination | string | `"edge"` | |
| securityContext | object | `{}` | |
| service.port | int | `8080` | |
| service.targetPort | int | `7007` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
16 changes: 7 additions & 9 deletions charts/backstage/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "backstage.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "backstage.labels" . | nindent 4 }}
name: { { include "backstage.fullname" . } }
namespace: { { .Release.Namespace } }
labels: { { - include "backstage.labels" . | nindent 4 } }
spec:
type: {{ .Values.service.type }}
type: { { .Values.service.type } }
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
- port: { { .Values.service.port } }
targetPort: { { .Values.service.targetPort } }
protocol: TCP
name: http
selector:
{{- include "backstage.selectorLabels" . | nindent 4 }}
selector: { { - include "backstage.selectorLabels" . | nindent 4 } }
Loading