Skip to content

Commit 0465c3d

Browse files
committed
add trigger on valiation resource
1 parent 3c93208 commit 0465c3d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/addon/validations.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
resource "terraform_data" "validations" {
2+
count = var.enabled ? 1 : 0
23
lifecycle {
34
precondition {
45
condition = !local.argo_application_source_helm_enabled || (
@@ -34,3 +35,8 @@ resource "terraform_data" "validations" {
3435
}
3536
}
3637
}
38+
39+
moved {
40+
from = terraform_data.validations
41+
to = terraform_data.validations[0]
42+
}

0 commit comments

Comments
 (0)