Skip to content

Commit bc9493b

Browse files
committed
Folder and kustomize restructure setup for oauth-proxy, redis, backstage and hc swiss internal app
- removal of vault agent - adaptation to preprod env - folder restructure - kustomize resources restructure - enablement of kutomize-argocd vault plugin
1 parent 66f999b commit bc9493b

File tree

114 files changed

+605
-664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+605
-664
lines changed

kubernetes/helm_charts/local/argo-cd/values/preprod/values-argocd-applications.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ applications:
315315
config:
316316
namespace: backstage-dev
317317
repoURL: 'https://github.com/opentelekomcloud-infra/system-config.git'
318-
targetRevision: 'Helm_charts_restructure&Pre-Prod_setup'
318+
targetRevision: 'Providing_backstage_kustomize_app'
319319
path: kubernetes/kustomize/backstage/overlays/dev/
320320
project: infra
321321
kustomize: {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: argo-cd
3+
repository: https://argoproj.github.io/argo-helm
4+
version: 8.1.0
5+
digest: sha256:621680d81abad601a118427fe36d8a97ebe285aeec023a73ab1abd99807fb8ea
6+
generated: "2025-09-26T10:55:05.317503+02:00"
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Environment variables for backstage
2+
LOG_LEVEL=debug
3+
NODE_ENV=production

kubernetes/kustomize/backstage/base/deployment.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ spec:
1414
labels:
1515
app.kubernetes.io/component: backstage
1616
spec:
17+
serviceAccountName: backstage
1718
terminationGracePeriodSeconds: 10
1819
containers:
1920
- name: backstage
@@ -22,9 +23,11 @@ spec:
2223
ports:
2324
- name: http
2425
containerPort: 7007
25-
env:
26-
- name: LOG_LEVEL
27-
value: debug
26+
envFrom:
27+
- configMapRef:
28+
name: config
29+
- secretRef:
30+
name: backstage-secret
2831
resources:
2932
requests:
3033
cpu: "50m"

kubernetes/kustomize/backstage/base/kustomization.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,15 @@ resources:
1313
- service.yaml
1414
- ingress.yaml
1515
- deployment.yaml
16+
- sa.yaml
17+
- secret.yaml
18+
19+
configMapGenerator:
20+
- name: config
21+
envs:
22+
- backstage.env
23+
24+
generatorOptions:
25+
disableNameSuffixHash: false
26+
labels:
27+
app.kubernetes.io/managed-by: kustomize
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: backstage
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: backstage-secret
6+
type: Opaque
7+
stringData:
8+
# Database configuration
9+
POSTGRES_HOST: <path:secret/data/backstage/database#host>
10+
POSTGRES_PORT: <path:secret/data/backstage/database#port>
11+
POSTGRES_USER: <path:secret/data/backstage/database#username>
12+
POSTGRES_PASSWORD: <path:secret/data/backstage/database#password>
13+
14+
# Auth configuration
15+
AUTH_GITHUB_CLIENT_ID: <path:secret/data/backstage/auth#github_client_id>
16+
AUTH_GITHUB_CLIENT_SECRET: >-
17+
<path:secret/data/backstage/auth#github_client_secret>
18+
19+
# Integration tokens
20+
GITHUB_TOKEN: <path:secret/data/backstage/integrations#github_token>
21+
GITLAB_TOKEN: <path:secret/data/backstage/integrations#gitlab_token>
22+
23+
# App configuration
24+
BACKEND_SECRET: <path:secret/data/backstage/config#backend_secret>
25+
CATALOG_TOKEN: <path:secret/data/backstage/config#catalog_token>

kubernetes/kustomize/backstage/components/oauth-proxy/deployment.yaml

Lines changed: 0 additions & 91 deletions
This file was deleted.

kubernetes/kustomize/backstage/components/oauth-proxy/kustomization.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)