Skip to content

Commit

Permalink
Replace waiting condition and remove unused code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Widmer committed Dec 21, 2023
1 parent 3d73dfc commit 39b20d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 0 additions & 4 deletions patterns/aws-vpc-cni-network-policy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@ terraform {
source = "hashicorp/kubernetes"
version = ">= 2.20"
}
null = {
source = "hashicorp/null"
version = ">= 3.2"
}
}
}
11 changes: 2 additions & 9 deletions patterns/vpc-lattice/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,11 @@ module "addons" {
name = "clusterVpcId"
value = module.cluster_vpc.vpc_id
}, ]

wait = true
}

tags = local.tags
}

resource "time_sleep" "wait_for_crd_registration" {
depends_on = [module.addons]

create_duration = "30s"
tags = local.tags
}

data "aws_iam_policy_document" "gateway_api_controller" {
Expand Down Expand Up @@ -195,8 +190,6 @@ resource "helm_release" "demo_application" {
chart = "./charts/demo-application"
create_namespace = true
namespace = "apps"

depends_on = [time_sleep.wait_for_crd_registration]
}

################################################################################
Expand Down

0 comments on commit 39b20d5

Please sign in to comment.