Skip to content

Commit 76ede88

Browse files
adding a fix for null source manifest
1 parent ef405bd commit 76ede88

File tree

1 file changed

+2
-2
lines changed
  • modules/management/kubectl-apply

1 file changed

+2
-2
lines changed

modules/management/kubectl-apply/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ locals {
4646
for index, manifest in local.enabled_manifests : tostring(index) => {
4747
content = (
4848
contains(keys(local.url_manifests), tostring(index)) ? data.http.manifest_from_url[tostring(index)].body :
49-
try(manifest.source, "") != "" ? (
49+
(manifest.source != null && manifest.source != "") ? (
5050
# Check if it ends in / OR (It's not a file AND can be searched as a directory)
5151
endswith(manifest.source, "/") || (!fileexists(manifest.source) && can(fileset(manifest.source, "*"))) ? (
5252
join("\n---\n", [
@@ -109,7 +109,7 @@ module "kubectl_apply_manifests" {
109109
namespace = each.value.namespace
110110
atomic = true
111111
wait = each.value.wait_for_rollout
112-
112+
timeout = 1200
113113
values_yaml = [
114114
yamlencode({
115115
manifests = [

0 commit comments

Comments
 (0)