mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-26 04:23:22 +02:00
6bb2bbb3ce
The chart currently is using images of Harbor 1.5 which contains three databases, this commit reduce them to only one to support master branch codes.
36 lines
940 B
YAML
36 lines
940 B
YAML
{{ if .Values.clair.enabled }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "harbor.fullname" . }}-clair
|
|
labels:
|
|
{{ include "harbor.labels" . | indent 4 }}
|
|
component: clair
|
|
data:
|
|
config.yaml: |
|
|
clair:
|
|
database:
|
|
type: pgsql
|
|
options:
|
|
source: "{{ template "harbor.database.clair" . }}"
|
|
# Number of elements kept in the cache
|
|
# Values unlikely to change (e.g. namespaces) are cached in order to save prevent needless roundtrips to the database.
|
|
cachesize: 16384
|
|
|
|
api:
|
|
# API server port
|
|
port: 6060
|
|
healthport: 6061
|
|
|
|
# Deadline before an API request will respond with a 503
|
|
timeout: 300s
|
|
updater:
|
|
interval: 12h
|
|
|
|
notifier:
|
|
attempts: 3
|
|
renotifyinterval: 2h
|
|
http:
|
|
endpoint: "http://{{ template "harbor.fullname" . }}-ui/service/notifications/clair"
|
|
{{ end }}
|