From f6131565c1a3655c08b9e1586e0a67ab28384cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Pi=C4=99kos?= Date: Tue, 25 Jun 2024 08:20:36 +0200 Subject: [PATCH] toggle for deleting flink deployments --- src/templates/flink-k8s-operator/delete-flink-deployments.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/templates/flink-k8s-operator/delete-flink-deployments.yaml b/src/templates/flink-k8s-operator/delete-flink-deployments.yaml index 87848a5..9c76fbf 100644 --- a/src/templates/flink-k8s-operator/delete-flink-deployments.yaml +++ b/src/templates/flink-k8s-operator/delete-flink-deployments.yaml @@ -1,4 +1,5 @@ {{- if and (hasKey .Values "flinkK8sOperatorDeploymentManager") .Values.flinkK8sOperatorDeploymentManager.enabled }} +{{- if not (and (hasKey .Values.flinkK8sOperatorDeploymentManager "keepFlinkDeploymentsOnUninstall") (.Values.flinkK8sOperatorDeploymentManager.keepFlinkDeploymentsOnUninstall)) }} apiVersion: batch/v1 kind: Job metadata: @@ -35,3 +36,4 @@ spec: restartPolicy: Never backoffLimit: 1 {{- end }} +{{- end }}