Skip to content

Commit fee86e1

Browse files
sayan-biswasRoming22
authored andcommitted
Add migrator config patches
1 parent 403968c commit fee86e1

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: tekton-results-api
6+
namespace: tekton-pipelines
7+
spec:
8+
template:
9+
spec:
10+
initContainers:
11+
- name: migrator
12+
env:
13+
- name: DB_USER
14+
valueFrom:
15+
secretKeyRef:
16+
name: tekton-results-database
17+
key: db.user
18+
- name: DB_PASSWORD
19+
valueFrom:
20+
secretKeyRef:
21+
name: tekton-results-database
22+
key: db.password
23+
- name: DB_HOST
24+
value:
25+
valueFrom:
26+
secretKeyRef:
27+
name: tekton-results-database
28+
key: db.host
29+
- name: DB_NAME
30+
value:
31+
valueFrom:
32+
secretKeyRef:
33+
name: tekton-results-database
34+
key: db.name

operator/gitops/argocd/pipeline-service/tekton-results/base/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ configMapGenerator:
3030
behavior: replace
3131

3232
patchesStrategicMerge:
33+
- api-migrator-config.yaml
3334
- api-db-config.yaml
3435
- api-s3-config.yaml
3536
- api-service-tls.yaml

0 commit comments

Comments
 (0)