File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ]
Original file line number Diff line number Diff 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 : []
You can’t perform that action at this time.
0 commit comments