Skip to content

Commit 0cfb2d4

Browse files
committed
deps: Update Developer Portal
1 parent b788eef commit 0cfb2d4

File tree

12 files changed

+250
-88
lines changed

12 files changed

+250
-88
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
registry-server: ghcr.io
1919
registry-username: ${{ github.actor }}
2020
image: ${{ github.repository }}
21-
version: 0.7.0
21+
version: 0.8.0
2222
secrets:
2323
pull-request-token: ${{ secrets.GH_ORG_PAT }}

package/config/helm/upstream/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ sources:
3434
- https://github.com/backstage/charts
3535
- https://github.com/backstage/backstage
3636
type: application
37-
version: 2.5.2
37+
version: 2.6.1

package/config/helm/upstream/backstage/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Backstage Helm Chart
33

44
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/backstage)](https://artifacthub.io/packages/search?repo=backstage)
5-
![Version: 2.5.2](https://img.shields.io/badge/Version-2.5.2-informational?style=flat-square)
5+
![Version: 2.6.1](https://img.shields.io/badge/Version-2.6.1-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
77

88
A Helm chart for deploying a Backstage application
@@ -117,6 +117,7 @@ Kubernetes: `>= 1.19.0-0`
117117
| backstage.annotations | Additional custom annotations for the `Deployment` resource | object | `{}` |
118118
| backstage.appConfig | Generates ConfigMap and configures it in the Backstage pods | object | `{}` |
119119
| backstage.args | Backstage container command arguments | list | `[]` |
120+
| backstage.autoscaling | Autoscaling configuration. <br /> Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ | object | `{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}` |
120121
| backstage.command | Backstage container command | list | `["node","packages/backend"]` |
121122
| backstage.containerPorts | Container ports on the Deployment | object | `{"backend":7007}` |
122123
| backstage.containerSecurityContext | Security settings for a Container. <br /> Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container | object | `{}` |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
backstage:
2+
autoscaling:
3+
enabled: true
4+
minReplicas: 1
5+
maxReplicas: 3
6+
targetCPUUtilizationPercentage: 75
7+
targetMemoryUtilizationPercentage: 90

package/config/helm/upstream/backstage/templates/backstage-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ metadata:
2020
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.annotations "context" $) | nindent 4 }}
2121
{{- end }}
2222
spec:
23+
{{- if not .Values.backstage.autoscaling.enabled }}
2324
replicas: {{ .Values.backstage.replicas }}
25+
{{- end }}
2426
revisionHistoryLimit: {{ .Values.backstage.revisionHistoryLimit }}
2527
selector:
2628
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{{- if .Values.backstage.autoscaling.enabled }}
2+
apiVersion: autoscaling/v2
3+
kind: HorizontalPodAutoscaler
4+
metadata:
5+
name: {{ include "common.names.fullname" . }}
6+
namespace: {{ .Release.Namespace | quote }}
7+
labels: {{ include "common.labels.standard" . | nindent 4 }}
8+
app.kubernetes.io/component: backstage
9+
{{- if .Values.commonLabels }}
10+
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
11+
{{- end }}
12+
annotations:
13+
{{- if .Values.commonAnnotations }}
14+
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
15+
{{- end }}
16+
{{- if .Values.backstage.annotations }}
17+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.annotations "context" $) | nindent 4 }}
18+
{{- end }}
19+
spec:
20+
scaleTargetRef:
21+
apiVersion: apps/v1
22+
kind: Deployment
23+
name: {{ include "common.names.fullname" . }}
24+
minReplicas: {{ .Values.backstage.autoscaling.minReplicas }}
25+
maxReplicas: {{ .Values.backstage.autoscaling.maxReplicas }}
26+
metrics:
27+
{{- if .Values.backstage.autoscaling.targetCPUUtilizationPercentage }}
28+
- type: Resource
29+
resource:
30+
name: cpu
31+
target:
32+
type: Utilization
33+
averageUtilization: {{ .Values.backstage.autoscaling.targetCPUUtilizationPercentage }}
34+
{{- end }}
35+
{{- if .Values.backstage.autoscaling.targetMemoryUtilizationPercentage }}
36+
- type: Resource
37+
resource:
38+
name: memory
39+
target:
40+
type: Utilization
41+
averageUtilization: {{ .Values.backstage.autoscaling.targetMemoryUtilizationPercentage }}
42+
{{- end }}
43+
{{- end }}

package/config/helm/upstream/backstage/values.schema.json

Lines changed: 125 additions & 57 deletions
Large diffs are not rendered by default.

package/config/helm/upstream/backstage/values.schema.tmpl.json

Lines changed: 55 additions & 23 deletions
Large diffs are not rendered by default.

package/config/helm/upstream/backstage/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ backstage:
140140
minAvailable: ""
141141
maxUnavailable: ""
142142

143+
# -- Autoscaling configuration.
144+
# <br /> Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
145+
autoscaling:
146+
enabled: false
147+
minReplicas: 1
148+
maxReplicas: 100
149+
targetCPUUtilizationPercentage: 80
150+
# targetMemoryUtilizationPercentage: 80
151+
143152
# -- Container ports on the Deployment
144153
containerPorts:
145154
backend: 7007

package/config/helm/values.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ backstage:
77
image:
88
registry: ghcr.io
99
repository: kadras-io/kadras-developer-portal
10-
tag: sha-0600662b3377d2bb39e8138387b6023c506f8233
10+
tag: sha-542d971d6afd42dbc98fd5f1d154b3989eafdfdb
1111
args:
1212
- '--config'
1313
- '/app/app-config.yaml'
@@ -62,8 +62,8 @@ postgresql:
6262
existingSecret: postgresql-credentials
6363
image:
6464
registry: docker.io
65-
repository: bitnami/postgresql
66-
tag: 17.4.0
65+
repository: bitnamilegacy/postgresql
66+
tag: 17.6.0
6767
pullSecrets:
6868
- canonical-registry-credentials
6969
primary:

0 commit comments

Comments
 (0)