Skip to content

Commit aff5b07

Browse files
Lingling PengLingling Peng
authored andcommitted
use variable to control prune
1 parent bae40a4 commit aff5b07

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

modules/external-secrets/main.tf

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ metadata:
1515
argocd.argoproj.io/sync-wave: "0"
1616
spec:
1717
project: default
18+
%{if var.auto_deploy}
1819
syncPolicy:
1920
automated:
20-
prune: true
21+
prune: ${var.auto_prune}
22+
%{endif}
2123
sources:
2224
- repoURL: 'https://charts.external-secrets.io'
2325
chart: external-secrets
@@ -33,12 +35,4 @@ spec:
3335
server: 'https://kubernetes.default.svc'
3436
namespace: external-secrets
3537
YAML
36-
}
37-
38-
resource "local_file" "eso_values" {
39-
content = templatefile(
40-
"${path.module}/templates/values.yaml.tmpl",
41-
{ account_id = data.aws_caller_identity.current.account_id }
42-
)
43-
filename = "${path.module}/templates/values.yaml"
44-
}
38+
}

0 commit comments

Comments
 (0)