From 8e76352b547b0a35fc579f86a577cc85df07798a Mon Sep 17 00:00:00 2001 From: Nikita Korolev Date: Wed, 24 Dec 2025 13:09:37 +0300 Subject: [PATCH] chore(module): disabling state tracking for dvcr deployment Signed-off-by: Nikita Korolev --- templates/_helpers.tpl | 7 +++++++ templates/dvcr/deployment.yaml | 1 + 2 files changed, 8 insertions(+) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 050b5874e6..71b212cfb0 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -66,3 +66,10 @@ nodeSelector: true {{- end }} {{- end }} + +{{/* https://werf.io/docs/v2/usage/deploy/tracking.html#disabling-state-tracking-and-ignoring-resource-errors-werf-only */}} +{{- define "werf.annotations.disabling_state_tracking_and_ignoring_resource_errors" }} +annotations: + werf.io/fail-mode: IgnoreAndContinueDeployProcess + werf.io/track-termination-mode: NonBlocking +{{- end }} \ No newline at end of file diff --git a/templates/dvcr/deployment.yaml b/templates/dvcr/deployment.yaml index 722ff35844..66b4d29925 100644 --- a/templates/dvcr/deployment.yaml +++ b/templates/dvcr/deployment.yaml @@ -59,6 +59,7 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: + {{- include "werf.annotations.disabling_state_tracking_and_ignoring_resource_errors" . | nindent 2 }} {{- include "helm_lib_module_labels" (list . (dict "app" "dvcr")) | nindent 2 }} name: dvcr namespace: d8-{{ .Chart.Name }}