Skip to content

Commit

Permalink
Remove Config Values as Env var in API server
Browse files Browse the repository at this point in the history
Move these config to configmap so that changing configmap configures
the value.
  • Loading branch information
khrm authored and tekton-robot committed Jan 29, 2024
1 parent 456ba20 commit ed1ffdb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 38 deletions.
2 changes: 0 additions & 2 deletions config/base/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ spec:
secretKeyRef:
name: tekton-results-postgres
key: POSTGRES_PASSWORD
- name: DB_NAME
value: tekton-results
volumeMounts:
- name: config
mountPath: /etc/tekton/results
Expand Down
4 changes: 2 additions & 2 deletions config/base/env/config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_HOST=tekton-results-postgres-service.tekton-pipelines.svc.cluster.local
DB_PORT=5432
DB_NAME=
DB_NAME=tekton-results
DB_SSLMODE=disable
DB_SSLROOTCERT=
DB_ENABLE_AUTO_MIGRATION=true
Expand Down
26 changes: 0 additions & 26 deletions config/components/local-db/api.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions config/components/local-db/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,3 @@ kind: Component

resources:
- 201-sql-deployment.yaml

patches:
- target:
kind: Deployment
name: api
path: api.yaml
4 changes: 2 additions & 2 deletions test/e2e/gcs-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ data:
config: |
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_HOST=tekton-results-postgres-service.tekton-pipelines.svc.cluster.local
DB_PORT=5432
DB_NAME=
DB_NAME=tekton-results
DB_SSLMODE=disable
DB_ENABLE_AUTO_MIGRATION=true
SERVER_PORT=8080
Expand Down

0 comments on commit ed1ffdb

Please sign in to comment.