Skip to content

Commit

Permalink
chore: remove images entirely from charts (#2231)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Jan 9, 2025
1 parent 4d8ecdd commit 4a3379a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
7 changes: 5 additions & 2 deletions backend/src/prisma.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ const dataSourceURL = `postgresql://${DB_USER}:${DB_PWD}@${DB_HOST}:${DB_PORT}/$
@Injectable()
class PrismaService extends PrismaClient<Prisma.PrismaClientOptions, 'query'> implements OnModuleInit, OnModuleDestroy {
private logger = new Logger("PRISMA");

private static instance: PrismaService;
constructor() {
if (PrismaService.instance) {
return PrismaService.instance;
}
super({
errorFormat: 'pretty',
datasources: {
Expand All @@ -28,7 +31,7 @@ class PrismaService extends PrismaClient<Prisma.PrismaClientOptions, 'query'> im
{ emit: 'stdout', level: 'error' },
]
});

PrismaService.instance = this;
}


Expand Down
6 changes: 0 additions & 6 deletions charts/crunchy/templates/PostgresCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ metadata:
spec:
metadata:
labels: {{ include "crunchy-postgres.labels" . | nindent 6 }}
{{ if .Values.crunchy.crunchyImage }}
image: {{ .Values.crunchy.crunchyImage }}
{{ end }}
imagePullPolicy: {{.Values.crunchy.imagePullPolicy}}
postgresVersion: {{ .Values.crunchy.postgresVersion }}
{{ if .Values.crunchy.postGISVersion }}
Expand Down Expand Up @@ -115,9 +112,6 @@ spec:
{{- if .Values.crunchy.pgBackRest.enabled }}
backups:
pgbackrest:
{{ if .Values.crunchy.pgBackRest.image }}
image: {{ .Values.crunchy.pgBackRest.image }}
{{ end }}
{{- if .Values.crunchy.pgBackRest.s3.enabled}}
configuration:
- secret:
Expand Down
4 changes: 0 additions & 4 deletions charts/crunchy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ global:
dbName: app #test
crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single postgres
enabled: true
# it is recommended by platform team , not to use explicit images
#crunchyImage: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-postgres-gis:ubi8-16.2-3.4-0
postgresVersion: 16
postGISVersion: '3.4'
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -49,8 +47,6 @@ crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single
enabled: true
backupPath: /backups/test/cluster/version # change it for PROD, create values-prod.yaml
clusterCounter: 1 # this is the number to identify what is the current counter for the cluster, each time it is cloned it should be incremented.
# it is recommended by platform team , not to use explicit images
# image: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-pgbackrest:ubi8-2.49-0
# If retention-full-type set to 'count' then the oldest backups will expire when the number of backups reach the number defined in retention
# If retention-full-type set to 'time' then the number defined in retention will take that many days worth of full backups before expiration
retentionFullType: count
Expand Down

0 comments on commit 4a3379a

Please sign in to comment.