From ab027b3ed346c317b0f1ea2983beba8f9c5accc5 Mon Sep 17 00:00:00 2001 From: derek Date: Mon, 1 Apr 2024 04:16:27 +0900 Subject: [PATCH] Add lifecycle to core dpl Signed-off-by: derek --- templates/core/core-dpl.yaml | 4 ++++ values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/templates/core/core-dpl.yaml b/templates/core/core-dpl.yaml index e52e5f775..1ed3af77b 100644 --- a/templates/core/core-dpl.yaml +++ b/templates/core/core-dpl.yaml @@ -85,6 +85,10 @@ spec: port: {{ template "harbor.core.containerPort" . }} failureThreshold: 2 periodSeconds: 10 +{{- with .Values.core.lifecycle }} + lifecycle: +{{ toYaml . | indent 10 }} +{{- end }} envFrom: - configMapRef: name: "{{ template "harbor.core" . }}" diff --git a/values.yaml b/values.yaml index 7e7490650..ab57b9cbc 100644 --- a/values.yaml +++ b/values.yaml @@ -565,6 +565,7 @@ core: extraEnvVars: [] nodeSelector: {} tolerations: [] + lifecycle: [] affinity: {} # Spread Pods across failure-domains like regions, availability zones or nodes topologySpreadConstraints: []