Skip to content

Commit

Permalink
Update cronjob clowdapp properties (RedHatInsights#2842)
Browse files Browse the repository at this point in the history
- Ephemeral and prod/stage use the same keys for the secret
   There is no longer a point in using a separate configuration
 - Database name is provided by the secret (maybe before it wasnt)

See: https://gitlab.cee.redhat.com/service/app-interface#manage-rds-databases-via-app-interface-openshiftnamespace-1yml
  • Loading branch information
josejulio authored Jul 26, 2024
1 parent 29459f0 commit 8cc8f2d
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .rhcicd/clowdapp-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,22 @@ objects:
valueFrom:
secretKeyRef:
name: notifications-backend-db
key: ${DB_SECRET_HOSTNAME_KEY}
key: db.host
- name: PGDATABASE
value: ${DB_NAME}
valueFrom:
secretKeyRef:
name: notifications-backend-db
key: db.name
- name: PGUSER
valueFrom:
secretKeyRef:
name: notifications-backend-db
key: ${DB_SECRET_USERNAME_KEY}
key: db.user
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: notifications-backend-db
key: ${DB_SECRET_PASSWORD_KEY}
key: db.password
deployments:
- name: service
minReplicas: ${{MIN_REPLICAS}}
Expand Down Expand Up @@ -196,18 +199,6 @@ parameters:
- name: DB_CLEANER_SCHEDULE
description: Execution time specified in cron format
value: "0 1 * * *"
- name: DB_NAME
description: Database name used by the notifications-db-cleaner CronJob
value: notifications_backend
- name: DB_SECRET_HOSTNAME_KEY
description: Key of the hostname field in the notifications-backend-db secret
value: db.host
- name: DB_SECRET_PASSWORD_KEY
description: Key of the password field in the notifications-backend-db secret
value: db.password
- name: DB_SECRET_USERNAME_KEY
description: Key of the username field in the notifications-backend-db secret
value: db.user
- name: DISABLE_DB_CLEANER
description: Should the DB cleaner CronJob be disabled?
value: "false"
Expand Down

0 comments on commit 8cc8f2d

Please sign in to comment.