Skip to content

Commit 1552181

Browse files
fix: update offline db initContainer memory to 2Gi (#184)
1 parent 581fddf commit 1552181

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

templates/_helpers.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,10 @@ app: "{{ template "harbor.name" . }}"
738738
{{ $subPath := .Values.persistence.persistentVolumeClaim.trivy.subPath }}
739739
{{- if .Values.trivy.offlineScan }}
740740
- name: "init-offline-db"
741+
{{- if .Values.trivy.offlineDBInitResources }}
741742
resources:
742-
{{ toYaml .Values.trivy.resources | nindent 4 }}
743+
{{ toYaml .Values.trivy.offlineDBInitResources | nindent 4 }}
744+
{{- end }}
743745
image: {{ include "harbor.image" (dict "values" .Values "image" "trivyOfflineDB") }}
744746
imagePullPolicy: Always
745747
command: [ "/bin/sh" ]

values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,13 @@ trivy:
866866
limits:
867867
cpu: 1
868868
memory: 1Gi
869+
offlineDBInitResources:
870+
requests:
871+
cpu: 200m
872+
memory: 512Mi
873+
limits:
874+
cpu: 1
875+
memory: 2Gi
869876
extraEnvVars: []
870877
nodeSelector: {}
871878
tolerations: []

0 commit comments

Comments
 (0)