Skip to content

Commit

Permalink
Make null_resource.tp_deployer optional
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Schmid <[email protected]>
  • Loading branch information
PhilipSchmid committed Jun 12, 2024
1 parent fc96480 commit 5ca366d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ resource "null_resource" "provisioner" {
}

resource "null_resource" "tp_deployer" {
count = var.tetragon_tracingpolicy_directory != "" ? 1 : 0
depends_on = [
null_resource.provisioner
]
Expand All @@ -21,4 +22,4 @@ resource "null_resource" "tp_deployer" {
command = local.tp_deployer_path // The path to the TracingPolicy deployment script.
environment = local.tp_deployer_environment // The set of environment variables used when running the TracingPolicy deployment script.
}
}
}

0 comments on commit 5ca366d

Please sign in to comment.