Skip to content

Commit

Permalink
chore: fix db secret for cleanup (#14740)
Browse files Browse the repository at this point in the history
* chore: fix db secret for cleanup

* chore: charts update dirty files

---------

Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored May 8, 2024
1 parent 56e8c8f commit d83303b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/services/auth/ids-api/infra/ids-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const cleanupSetup = (): ServiceBuilder<typeof cleanupId> =>
memory: '256Mi',
},
})
.db()
.db({ name: 'servicesauth', extensions: ['uuid-ossp'] })
.extraAttributes({
dev: schedule,
staging: schedule,
Expand Down
6 changes: 3 additions & 3 deletions charts/identity-server/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ services-auth-ids-api-cleanup:
enabled: true
env:
DB_HOST: 'postgres-applications.internal'
DB_NAME: 'services_auth_ids_api_cleanup'
DB_NAME: 'servicesauth'
DB_REPLICAS_HOST: 'postgres-applications-reader.internal'
DB_USER: 'services_auth_ids_api_cleanup'
DB_USER: 'servicesauth'
LOG_LEVEL: 'info'
NODE_OPTIONS: '--max-old-space-size=460'
SERVERSIDE_FEATURES_ON: ''
Expand Down Expand Up @@ -524,7 +524,7 @@ services-auth-ids-api-cleanup:
schedule: '0 3 * * *'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
DB_PASS: '/k8s/services-auth-ids-api-cleanup/DB_PASSWORD'
DB_PASS: '/k8s/servicesauth/DB_PASSWORD'
securityContext:
allowPrivilegeEscalation: false
privileged: false
Expand Down
6 changes: 3 additions & 3 deletions charts/identity-server/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ services-auth-ids-api-cleanup:
enabled: true
env:
DB_HOST: 'postgres-ids.internal'
DB_NAME: 'services_auth_ids_api_cleanup'
DB_NAME: 'servicesauth'
DB_REPLICAS_HOST: 'postgres-ids.internal'
DB_USER: 'services_auth_ids_api_cleanup'
DB_USER: 'servicesauth'
LOG_LEVEL: 'info'
NODE_OPTIONS: '--max-old-space-size=460'
SERVERSIDE_FEATURES_ON: 'driving-license-use-v1-endpoint-for-v2-comms'
Expand Down Expand Up @@ -521,7 +521,7 @@ services-auth-ids-api-cleanup:
schedule: '0 3 * * *'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
DB_PASS: '/k8s/services-auth-ids-api-cleanup/DB_PASSWORD'
DB_PASS: '/k8s/servicesauth/DB_PASSWORD'
securityContext:
allowPrivilegeEscalation: false
privileged: false
Expand Down
6 changes: 3 additions & 3 deletions charts/identity-server/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ services-auth-ids-api-cleanup:
enabled: true
env:
DB_HOST: 'postgres-applications.internal'
DB_NAME: 'services_auth_ids_api_cleanup'
DB_NAME: 'servicesauth'
DB_REPLICAS_HOST: 'postgres-applications.internal'
DB_USER: 'services_auth_ids_api_cleanup'
DB_USER: 'servicesauth'
LOG_LEVEL: 'info'
NODE_OPTIONS: '--max-old-space-size=460'
SERVERSIDE_FEATURES_ON: ''
Expand Down Expand Up @@ -524,7 +524,7 @@ services-auth-ids-api-cleanup:
schedule: '0 3 * * *'
secrets:
CONFIGCAT_SDK_KEY: '/k8s/configcat/CONFIGCAT_SDK_KEY'
DB_PASS: '/k8s/services-auth-ids-api-cleanup/DB_PASSWORD'
DB_PASS: '/k8s/servicesauth/DB_PASSWORD'
securityContext:
allowPrivilegeEscalation: false
privileged: false
Expand Down

0 comments on commit d83303b

Please sign in to comment.