Skip to content

Commit

Permalink
packport ide connections to 2.9
Browse files Browse the repository at this point in the history
Signed-off-by: Vadim Bauer <[email protected]>
  • Loading branch information
Vad1mo committed Jun 4, 2024
1 parent 837e9bf commit 97a6197
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/core/core-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ data:
POSTGRESQL_SSLMODE: "{{ template "harbor.database.sslmode" . }}"
POSTGRESQL_MAX_IDLE_CONNS: "{{ .Values.database.maxIdleConns }}"
POSTGRESQL_MAX_OPEN_CONNS: "{{ .Values.database.maxOpenConns }}"
POSTGRESQL_CONN_MAX_LIFETIME: "{{ .Values.database.connMaxLifetime }}"
POSTGRESQL_CONN_MAX_IDLE_TIME: "{{ .Values.database.connMaxIdleTime }}"
EXT_ENDPOINT: "{{ .Values.externalURL }}"
CORE_URL: "{{ template "harbor.coreURL" . }}"
JOBSERVICE_URL: "{{ template "harbor.jobserviceURL" . }}"
Expand Down Expand Up @@ -84,4 +86,4 @@ data:

{{- if .Values.core.quotaUpdateProvider }}
QUOTA_UPDATE_PROVIDER: "{{ .Values.core.quotaUpdateProvider }}"
{{- end }}
{{- end }}
7 changes: 7 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,13 @@ database:
# If it <= 0, then there is no limit on the number of open connections.
# Note: the default number of connections is 1024 for postgre of harbor.
maxOpenConns: 900
# The maximum amount of time a connection may be reused in seconds
#(core+exporter).Default is (5 minutes on exporter and 1h on core as per pgx defaults)
connMaxLifetime: 1h
# The maximum amount of time a connection can be idle before being closed in seconds (core+exporter).
# Default is (core as per pgx default 30 minutes and exporter 0)
connMaxIdleTime: 30m

## Additional deployment annotations
podAnnotations: {}
## Additional deployment labels
Expand Down

0 comments on commit 97a6197

Please sign in to comment.