Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove images entirely from charts #2231

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading