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 }}